Interface InternalWorkingMemory

All Superinterfaces:
EntryPoint, EventSupport, KieBaseEventManager, ReteEvaluator, ValueResolver, WorkingMemory, WorkingMemoryEntryPoint, WorkingMemoryEventManager
All Known Subinterfaces:
InternalWorkingMemoryActions

public interface InternalWorkingMemory extends WorkingMemory, WorkingMemoryEntryPoint, EventSupport
  • Method Details

    • getAgenda

      InternalAgenda getAgenda()
      Description copied from interface: WorkingMemory
      Returns the Agenda for this WorkingMemory. While the WorkingMemory interface is considered public, the Agenda interface is more subject to change.
      Specified by:
      getAgenda in interface WorkingMemory
      Returns:
      the Agenda
    • getIdentifier

      long getIdentifier()
      Specified by:
      getIdentifier in interface ReteEvaluator
    • setIdentifier

      void setIdentifier(long id)
    • setRuleRuntimeEventSupport

      void setRuleRuntimeEventSupport(RuleRuntimeEventSupport workingMemoryEventSupport)
    • setAgendaEventSupport

      void setAgendaEventSupport(AgendaEventSupport agendaEventSupport)
    • clearNodeMemory

      void clearNodeMemory(MemoryFactory node)
    • getNodeMemories

      NodeMemories getNodeMemories()
      Specified by:
      getNodeMemories in interface ReteEvaluator
    • getLock

      Lock getLock()
    • getInitialFactHandle

      InternalFactHandle getInitialFactHandle()
    • getKnowledgeRuntime

      InternalKnowledgeRuntime getKnowledgeRuntime()
    • getChannels

      Map<String,Channel> getChannels()
      Returns a map of channel Id->Channel of all channels in this working memory
      Returns:
    • getEntryPoints

      Collection<? extends EntryPoint> getEntryPoints()
      Specified by:
      getEntryPoints in interface ReteEvaluator
    • 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

      void closeLiveQuery(InternalFactHandle factHandle)
    • flushPropagations

      void flushPropagations()
    • activate

      void activate()
    • deactivate

      void deactivate()
    • tryDeactivate

      boolean tryDeactivate()
    • getActionsIterator

      Iterator<? extends PropagationEntry> getActionsIterator()
    • removeGlobal

      void removeGlobal(String identifier)
    • notifyWaitOnRest

      void notifyWaitOnRest()
    • cancelActivation

      void cancelActivation(InternalMatch internalMatch, boolean declarativeAgenda)
    • isThreadSafe

      default boolean isThreadSafe()
      Specified by:
      isThreadSafe in interface ReteEvaluator