|
Knowledge API Legacy5 Adapter 6.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.impl.adapters.KnowledgeRuntimeAdapter
org.drools.impl.adapters.StatefulKnowledgeSessionAdapter
public class StatefulKnowledgeSessionAdapter
| Field Summary |
|---|
| Fields inherited from class org.drools.impl.adapters.KnowledgeRuntimeAdapter |
|---|
delegate |
| Constructor Summary | |
|---|---|
StatefulKnowledgeSessionAdapter(org.kie.internal.runtime.StatefulKnowledgeSession delegate)
|
|
| Method Summary | ||
|---|---|---|
static List<StatefulKnowledgeSession> |
adaptStatefulKnowledgeSession(Collection<org.kie.internal.runtime.StatefulKnowledgeSession> sessions)
|
|
void |
dispose()
Releases all the current session resources, setting up the session for garbage collection. |
|
|
execute(Command<T> command)
Execute the command and return a ExecutionResults for the results of the Command. |
|
int |
fireAllRules()
Fire all Activations on the Agenda. |
|
int |
fireAllRules(AgendaFilter agendaFilter)
Fire all Activations on the Agenda |
|
int |
fireAllRules(AgendaFilter agendaFilter,
int max)
Fire all Activations on the Agenda |
|
int |
fireAllRules(int max)
Fire Activations on the Agenda up to the given maximum number of activations, before returning the control to the application. |
|
void |
fireUntilHalt()
Keeps firing activations until a halt is called. |
|
void |
fireUntilHalt(AgendaFilter agendaFilter)
Keeps firing activations until a halt is called. |
|
int |
getId()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.drools.runtime.KnowledgeRuntime |
|---|
getCalendars, getChannels, getEnvironment, getGlobal, getGlobals, getKnowledgeBase, getSessionClock, getSessionConfiguration, registerChannel, registerExitPoint, setGlobal, unregisterChannel, unregisterExitPoint |
| Methods inherited from interface org.drools.runtime.rule.WorkingMemory |
|---|
getAgenda, getQueryResults, getWorkingMemoryEntryPoint, getWorkingMemoryEntryPoints, halt, openLiveQuery |
| Methods inherited from interface org.drools.runtime.rule.WorkingMemoryEntryPoint |
|---|
getEntryPointId, getFactCount, getFactHandle, getFactHandles, getFactHandles, getObject, getObjects, getObjects, insert, retract, update |
| Methods inherited from interface org.drools.runtime.process.ProcessRuntime |
|---|
abortProcessInstance, createProcessInstance, getProcessInstance, getProcessInstances, getWorkItemManager, signalEvent, signalEvent, startProcess, startProcess, startProcessInstance |
| Methods inherited from interface org.drools.event.rule.WorkingMemoryEventManager |
|---|
addEventListener, addEventListener, getAgendaEventListeners, getWorkingMemoryEventListeners, removeEventListener, removeEventListener |
| Methods inherited from interface org.drools.event.process.ProcessEventManager |
|---|
addEventListener, getProcessEventListeners, removeEventListener |
| Constructor Detail |
|---|
public StatefulKnowledgeSessionAdapter(org.kie.internal.runtime.StatefulKnowledgeSession delegate)
| Method Detail |
|---|
public int getId()
getId in interface StatefulKnowledgeSessionpublic void dispose()
StatefulKnowledgeSession
dispose in interface StatefulKnowledgeSessionpublic <T> T execute(Command<T> command)
CommandExecutor
execute in interface CommandExecutorpublic int fireAllRules()
StatefulRuleSession
fireAllRules in interface StatefulRuleSessionpublic int fireAllRules(int max)
StatefulRuleSessionfireAllRules() again.
fireAllRules in interface StatefulRuleSessionmax - the maximum number of rules that should be fired
public int fireAllRules(AgendaFilter agendaFilter)
StatefulRuleSession
fireAllRules in interface StatefulRuleSessionagendaFilter - filters the activations that may fire
public int fireAllRules(AgendaFilter agendaFilter,
int max)
StatefulRuleSession
fireAllRules in interface StatefulRuleSessionagendaFilter - filters the activations that may firemax - the maximum number of rules that should be fired
public void fireUntilHalt()
StatefulRuleSession
fireUntilHalt in interface StatefulRuleSessionpublic void fireUntilHalt(AgendaFilter agendaFilter)
StatefulRuleSession
fireUntilHalt in interface StatefulRuleSessionagendaFilter - filters the activations that may firepublic static List<StatefulKnowledgeSession> adaptStatefulKnowledgeSession(Collection<org.kie.internal.runtime.StatefulKnowledgeSession> sessions)
|
Knowledge API Legacy5 Adapter 6.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||