Package org.drools.core.common
Interface InternalWorkingMemory
- All Superinterfaces:
EntryPoint,EventSupport,KieBaseEventManager,ReteEvaluator,ValueResolver,WorkingMemory,WorkingMemoryEntryPoint,WorkingMemoryEventManager
- All Known Subinterfaces:
InternalWorkingMemoryActions
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.drools.core.common.ReteEvaluator
ReteEvaluator.InternalOperationType -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidcancelActivation(InternalMatch internalMatch, boolean declarativeAgenda) voidclearNodeMemory(MemoryFactory node) voidcloseLiveQuery(InternalFactHandle factHandle) voidvoidvoidIterator<? extends PropagationEntry>Returns the Agenda for this WorkingMemory.Returns a map of channel Id->Channel of all channels in this working memoryCollection<? extends EntryPoint>longlongReturns the number of time units (usually ms) that the engine is idle according to the session clock or -1 if it is not idle.getLock()longReturns the number of time units (usually ms) to the next scheduled joblongReturns the total number of facts in the working memory, i.e., counting all facts from all entry points.default booleanvoidvoidremoveGlobal(String identifier) voidsetAgendaEventSupport(AgendaEventSupport agendaEventSupport) voidsetIdentifier(long id) voidsetRuleRuntimeEventSupport(RuleRuntimeEventSupport workingMemoryEventSupport) voidbooleanvoidMethods inherited from interface org.kie.api.runtime.rule.EntryPoint
delete, delete, getEntryPointId, getFactCount, getFactHandle, getFactHandles, getFactHandles, getInstancesOf, getObject, getObjects, getObjects, getSingleInstanceOf, insert, retract, update, updateMethods inherited from interface org.drools.core.common.EventSupport
getAgendaEventListeners, getAgendaEventSupport, getRuleEventSupport, getRuleRuntimeEventListeners, getRuleRuntimeEventSupportMethods inherited from interface org.kie.api.event.kiebase.KieBaseEventManager
addEventListener, getKieBaseEventListeners, removeEventListenerMethods inherited from interface org.drools.core.common.ReteEvaluator
addPropagation, createFactHandle, createKnowledgeHelper, dispose, enableTMS, endOperation, getActivationsManager, getAgendaEventSupport, getCalendars, getDefaultEntryPoint, getDefaultEntryPointId, getEntryPoint, getFactHandle, getFactHandleFactory, getGlobal, getKnowledgeBase, getNextPropagationIdCounter, getNodeMemory, getRuleEventSupport, getRuleRuntimeEventSupport, getRuleSessionConfiguration, getSessionClock, getSessionConfiguration, getTimerJobInstances, getTimerService, getWorkingMemoryActionListener, insert, isSequential, isTMSEnabled, onWorkingMemoryAction, setWorkingMemoryActionListener, startOperationMethods inherited from interface org.drools.base.base.ValueResolver
getCurrentTime, getGlobalResolver, getRuleBaseMethods inherited from interface org.drools.core.WorkingMemory
clearActivationGroup, clearAgenda, clearAgendaGroup, clearRuleFlowGroup, fireAllRules, fireAllRules, fireAllRules, fireAllRules, getEnvironment, getProcessInstance, getProcessInstance, getProcessInstances, getQueryResults, getWorkItemManager, halt, iterateFactHandles, iterateFactHandles, iterateObjects, iterateObjects, setFocus, setGlobal, setGlobalResolver, startProcess, startProcessMethods inherited from interface org.drools.core.WorkingMemoryEntryPoint
delete, delete, dispose, getEntryPoint, getEntryPointNode, getHandleFactory, getKnowledgeBase, getObjectStore, getObjectTypeConfigurationRegistry, getReteEvaluator, getRuleUnit, insert, reset, setRuleUnit, updateMethods inherited from interface org.drools.core.WorkingMemoryEventManager
addEventListener, addEventListener, getAgendaEventListeners, getRuleRuntimeEventListeners, removeEventListener, removeEventListener
-
Method Details
-
getAgenda
InternalAgenda getAgenda()Description copied from interface:WorkingMemoryReturns the Agenda for this WorkingMemory. While the WorkingMemory interface is considered public, the Agenda interface is more subject to change.- Specified by:
getAgendain interfaceWorkingMemory- Returns:
- the Agenda
-
getIdentifier
long getIdentifier()- Specified by:
getIdentifierin interfaceReteEvaluator
-
setIdentifier
void setIdentifier(long id) -
setRuleRuntimeEventSupport
-
setAgendaEventSupport
-
clearNodeMemory
-
getNodeMemories
NodeMemories getNodeMemories()- Specified by:
getNodeMemoriesin interfaceReteEvaluator
-
getLock
Lock getLock() -
getInitialFactHandle
InternalFactHandle getInitialFactHandle() -
getKnowledgeRuntime
InternalKnowledgeRuntime getKnowledgeRuntime() -
getChannels
Returns a map of channel Id->Channel of all channels in this working memory- Returns:
-
getEntryPoints
Collection<? extends EntryPoint> getEntryPoints()- Specified by:
getEntryPointsin interfaceReteEvaluator
-
startBatchExecution
void startBatchExecution() -
endBatchExecution
void endBatchExecution() -
getIdleTime
long getIdleTime()Returns the number of time units (usually ms) that the engine is idle according to the session clock or -1 if it is not idle. This method is not synchronised and might return an approximate value.- Returns:
-
getTimeToNextJob
long getTimeToNextJob()Returns the number of time units (usually ms) to the next scheduled job- Returns:
- the number of time units until the next scheduled job or -1 if there is no job scheduled
-
updateEntryPointsCache
void updateEntryPointsCache() -
getTotalFactCount
long getTotalFactCount()Returns the total number of facts in the working memory, i.e., counting all facts from all entry points. This is an approximate value and may not be accurate due to the concurrent nature of the entry points.- Returns:
-
getProcessRuntime
InternalProcessRuntime getProcessRuntime() -
internalGetProcessRuntime
InternalProcessRuntime internalGetProcessRuntime() -
closeLiveQuery
-
flushPropagations
void flushPropagations() -
activate
void activate() -
deactivate
void deactivate() -
tryDeactivate
boolean tryDeactivate() -
getActionsIterator
Iterator<? extends PropagationEntry> getActionsIterator() -
removeGlobal
-
notifyWaitOnRest
void notifyWaitOnRest() -
cancelActivation
-
isThreadSafe
default boolean isThreadSafe()- Specified by:
isThreadSafein interfaceReteEvaluator
-