Package org.drools.ruleunits.api

## Interface DataProcessor<T>

- Type Parameters:
    `T` - The type of objects observed by this DataProcessor.

      public interface DataProcessor<T>

  The interface to implement in order to be notified of all the changes occurred to the facts managed by a `DataSource`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `delete​(DataHandle handle)` | Notifies this DataProcessor that an object with the given `DataHandle` has been deleted from the observed `DataSource`.
    `FactHandle` | `insert​(DataHandle handle, T object)` | Notifies this DataProcessor that an object with the given `DataHandle` has been inserted in the observed `DataSource`.
    `default void` | `insert​(T object)` | Notifies this DataProcessor that an object has been inserted in the observed `DataSource`.
    `void` | `update​(DataHandle handle, T object)` | Notifies this DataProcessor that an object with the given `DataHandle` has been updated in the observed `DataSource`.

- - ### Method Detail

    - #### insert

          default void insert​(T object)

      Notifies this DataProcessor that an object has been inserted in the observed `DataSource`.

    - #### insert

          FactHandle insert​(DataHandle handle,
                            T object)

      Notifies this DataProcessor that an object with the given `DataHandle` has been inserted in the observed `DataSource`.

    - #### update

          void update​(DataHandle handle,
                      T object)

      Notifies this DataProcessor that an object with the given `DataHandle` has been updated in the observed `DataSource`.

    - #### delete

          void delete​(DataHandle handle)

      Notifies this DataProcessor that an object with the given `DataHandle` has been deleted from the observed `DataSource`.