|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StatefulSession
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 note of the javadocs for specific methods). IMPORTANT: Remember to call dispose() when finished with this session.
| 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(Collection collect)
Insert/Assert a collect of objects.. |
Future |
asyncInsert(Object object)
Insert/Assert an object asynchronously. |
Future |
asyncInsert(Object[] array)
Insert/Assert an array of objects.. |
Future |
asyncRetract(FactHandle factHandle)
|
Future |
asyncUpdate(FactHandle factHandle,
Object object)
|
void |
dispose()
Forces the workingMemory to be disconnected from the rulebase (not calling this may cause resource leaks). |
void |
fireUntilHalt()
Keeps firing activations until a halt is called. |
void |
fireUntilHalt(AgendaFilter agendaFilter)
Keeps firing activations until a halt is called. |
List |
getRuleBaseUpdateListeners()
|
| Methods inherited from interface org.drools.WorkingMemoryEventManager |
|---|
addEventListener, addEventListener, getAgendaEventListeners, getWorkingMemoryEventListeners, removeEventListener, removeEventListener |
| Methods inherited from interface org.drools.RuleBaseEventManager |
|---|
addEventListener, getRuleBaseEventListeners, removeEventListener |
| Methods inherited from interface org.drools.WorkingMemoryEntryPoint |
|---|
insert, insert, retract, update |
| Methods inherited from interface org.drools.runtime.rule.WorkingMemoryEntryPoint |
|---|
getEntryPointId, getFactCount, getFactHandles, getFactHandles, getObjects, getObjects |
| Method Detail |
|---|
void dispose()
Future asyncInsert(Object object)
Future asyncRetract(FactHandle factHandle)
Future asyncUpdate(FactHandle factHandle,
Object object)
Future asyncInsert(Object[] array)
Future asyncInsert(Collection collect)
Future asyncFireAllRules()
Future asyncFireAllRules(AgendaFilter agendaFilter)
List getRuleBaseUpdateListeners()
void fireUntilHalt()
IllegalStateException - if this method is called when running in sequential modevoid fireUntilHalt(AgendaFilter agendaFilter)
agendaFilter - filters the activations that may fire
IllegalStateException - if this method is called when running in sequential mode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||