public class StatelessKnowledgeSessionAdapter extends Object implements StatelessKnowledgeSession
Constructor and Description |
---|
StatelessKnowledgeSessionAdapter(org.kie.internal.runtime.StatelessKnowledgeSession delegate) |
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(AgendaEventListener listener)
Add an event listener.
|
void |
addEventListener(ProcessEventListener listener)
Add a process event listener.
|
void |
addEventListener(WorkingMemoryEventListener listener)
Add an event listener.
|
boolean |
equals(Object obj) |
<T> T |
execute(Command<T> command)
Execute the command and return a ExecutionResults for the results of the Command.
|
void |
execute(Iterable objects)
Execute a StatelessKnowledSession, iterate the Iterable inserting each of it's elements.
|
void |
execute(Object object)
Execute a StatelessKnowledSession inserting just a single object.
|
Collection<AgendaEventListener> |
getAgendaEventListeners()
Returns all event listeners.
|
Globals |
getGlobals()
Return the Globals store
|
Collection<ProcessEventListener> |
getProcessEventListeners()
Returns all event listeners.
|
Collection<WorkingMemoryEventListener> |
getWorkingMemoryEventListeners()
Returns all event listeners.
|
int |
hashCode() |
void |
removeEventListener(AgendaEventListener listener)
Remove an event listener.
|
void |
removeEventListener(ProcessEventListener listener)
Remove a process event listener.
|
void |
removeEventListener(WorkingMemoryEventListener listener)
Remove an event listener.
|
void |
setGlobal(String identifer,
Object value)
Sets a global value on the globals store
|
public StatelessKnowledgeSessionAdapter(org.kie.internal.runtime.StatelessKnowledgeSession delegate)
public Globals getGlobals()
StatelessKnowledgeSession
getGlobals
in interface StatelessKnowledgeSession
public void setGlobal(String identifer, Object value)
StatelessKnowledgeSession
setGlobal
in interface StatelessKnowledgeSession
identifer
- the global identifiervalue
- the value assigned to the global identifierpublic <T> T execute(Command<T> command)
CommandExecutor
execute
in interface CommandExecutor
public void addEventListener(ProcessEventListener listener)
ProcessEventManager
addEventListener
in interface ProcessEventManager
listener
- the listener to add.public void removeEventListener(ProcessEventListener listener)
ProcessEventManager
removeEventListener
in interface ProcessEventManager
listener
- the listener to removepublic Collection<ProcessEventListener> getProcessEventListeners()
ProcessEventManager
getProcessEventListeners
in interface ProcessEventManager
public void execute(Object object)
StatelessRuleSession
execute
in interface StatelessRuleSession
public void execute(Iterable objects)
StatelessRuleSession
execute
in interface StatelessRuleSession
public void addEventListener(WorkingMemoryEventListener listener)
WorkingMemoryEventManager
addEventListener
in interface WorkingMemoryEventManager
listener
- The listener to add.public void removeEventListener(WorkingMemoryEventListener listener)
WorkingMemoryEventManager
removeEventListener
in interface WorkingMemoryEventManager
listener
- The listener to remove.public Collection<WorkingMemoryEventListener> getWorkingMemoryEventListeners()
WorkingMemoryEventManager
getWorkingMemoryEventListeners
in interface WorkingMemoryEventManager
public void addEventListener(AgendaEventListener listener)
WorkingMemoryEventManager
addEventListener
in interface WorkingMemoryEventManager
listener
- The listener to add.public void removeEventListener(AgendaEventListener listener)
WorkingMemoryEventManager
removeEventListener
in interface WorkingMemoryEventManager
listener
- The listener to remove.public Collection<AgendaEventListener> getAgendaEventListeners()
WorkingMemoryEventManager
getAgendaEventListeners
in interface WorkingMemoryEventManager
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.