| org.drools.StatefulSession
All known Subclasses: org.drools.reteoo.ReteooStatefulSession,
StatefulSession | public interface StatefulSession extends WorkingMemory(Code) | | A stateful session represents a working memory which keeps state
between invocations (accumulating facts/knowledge).
Caution should be used when using the async methods (take not of the javadocs for specific methods).
|
Method Summary | |
Future | asyncFireAllRules() This will initiate the firing phase (in the background). | Future | asyncFireAllRules(AgendaFilter agendaFilter) This will initiate the firing phase (in the background). | Future | asyncInsert(Object object) Insert/Assert an object asynchronously.
(return immediately, even while the insertion is taking effect).
The returned Future object can be queried to check on the status of the task.
You should only use the async methods if you are sure you require a background
insertion task to take effect (a new thread may be created). | Future | asyncInsert(Object[] array) Insert/Assert an array of objects..
(return immediately, even while the insertion is taking effect).
The returned Future object can be queried to check on the status of the task.
You should only use the async methods if you are sure you require a background
insertion task to take effect (a new thread may be created). | Future | asyncInsert(Collection collect) Insert/Assert a collect of objects..
(return immediately, even while the insertion is taking effect).
The returned Future object can be queried to check on the status of the task.
You should only use the async methods if you are sure you require a background
insertion task to take effect (a new thread may be created). | Future | asyncRetract(FactHandle factHandle) | Future | asyncUpdate(FactHandle factHandle, Object object) | void | dispose() |
asyncFireAllRules | Future asyncFireAllRules()(Code) | | This will initiate the firing phase (in the background).
And return immediately. The returned Future object can be queried
to check on the status of the task.
|
asyncFireAllRules | Future asyncFireAllRules(AgendaFilter agendaFilter)(Code) | | This will initiate the firing phase (in the background).
And return immediately. The returned Future object can be queried
to check on the status of the task.
|
asyncInsert | Future asyncInsert(Object object)(Code) | | Insert/Assert an object asynchronously.
(return immediately, even while the insertion is taking effect).
The returned Future object can be queried to check on the status of the task.
You should only use the async methods if you are sure you require a background
insertion task to take effect (a new thread may be created).
If you are not sure, then you probably don't need to use it !
|
asyncInsert | Future asyncInsert(Object[] array)(Code) | | Insert/Assert an array of objects..
(return immediately, even while the insertion is taking effect).
The returned Future object can be queried to check on the status of the task.
You should only use the async methods if you are sure you require a background
insertion task to take effect (a new thread may be created).
If you are not sure, then you probably don't need to use it !
|
asyncInsert | Future asyncInsert(Collection collect)(Code) | | Insert/Assert a collect of objects..
(return immediately, even while the insertion is taking effect).
The returned Future object can be queried to check on the status of the task.
You should only use the async methods if you are sure you require a background
insertion task to take effect (a new thread may be created).
If you are not sure, then you probably don't need to use it !
|
dispose | void dispose()(Code) | | Forces the workingMemory to be derefenced from
|
|
|