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 aDataSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddelete(DataHandle handle)Notifies this DataProcessor that an object with the givenDataHandlehas been deleted from the observedDataSource.FactHandleinsert(DataHandle handle, T object)Notifies this DataProcessor that an object with the givenDataHandlehas been inserted in the observedDataSource.default voidinsert(T object)Notifies this DataProcessor that an object has been inserted in the observedDataSource.voidupdate(DataHandle handle, T object)Notifies this DataProcessor that an object with the givenDataHandlehas been updated in the observedDataSource.
-
-
-
Method Detail
-
insert
default void insert(T object)
Notifies this DataProcessor that an object has been inserted in the observedDataSource.
-
insert
FactHandle insert(DataHandle handle, T object)
Notifies this DataProcessor that an object with the givenDataHandlehas been inserted in the observedDataSource.
-
update
void update(DataHandle handle, T object)
Notifies this DataProcessor that an object with the givenDataHandlehas been updated in the observedDataSource.
-
delete
void delete(DataHandle handle)
Notifies this DataProcessor that an object with the givenDataHandlehas been deleted from the observedDataSource.
-
-