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 void
delete(DataHandle handle)
Notifies this DataProcessor that an object with the givenDataHandle
has been deleted from the observedDataSource
.FactHandle
insert(DataHandle handle, T object)
Notifies this DataProcessor that an object with the givenDataHandle
has been inserted in the observedDataSource
.default void
insert(T object)
Notifies this DataProcessor that an object has been inserted in the observedDataSource
.void
update(DataHandle handle, T object)
Notifies this DataProcessor that an object with the givenDataHandle
has 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 givenDataHandle
has been inserted in the observedDataSource
.
-
update
void update(DataHandle handle, T object)
Notifies this DataProcessor that an object with the givenDataHandle
has been updated in the observedDataSource
.
-
delete
void delete(DataHandle handle)
Notifies this DataProcessor that an object with the givenDataHandle
has been deleted from the observedDataSource
.
-
-