Interface NodeMemories

  • All Known Implementing Classes:
    ConcurrentNodeMemories

    public interface NodeMemories
    An interface for node memories implementation
    • Method Detail

      • clear

        void clear()
      • peekNodeMemory

        Memory peekNodeMemory​(int memoryId)
        Peeks at the content of the node memory for the given node ID. This method has no side effects, so if the given memory slot for the given node ID is null, it will return null.
        Parameters:
        memoryId -
        Returns:
      • peekNodeMemory

        default Memory peekNodeMemory​(org.drools.base.common.NetworkNode node)
      • length

        int length()
        Returns the number of positions in this memory
        Returns:
      • resetAllMemories

        void resetAllMemories​(org.kie.internal.runtime.StatefulKnowledgeSession session)