Package org.drools.core.common
Interface NodeMemories
- All Known Implementing Classes:
ConcurrentNodeMemories
public interface NodeMemories
An interface for node memories implementation
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclearNodeMemory(MemoryFactory node) <T extends Memory>
TgetNodeMemory(MemoryFactory<T> node, ReteEvaluator reteEvaluator) intlength()Returns the number of positions in this memorypeekNodeMemory(int memoryId) Peeks at the content of the node memory for the given node ID.default MemorypeekNodeMemory(NetworkNode node) voidresetAllMemories(StatefulKnowledgeSession session)
-
Method Details
-
getNodeMemory
-
clearNodeMemory
-
clear
void clear() -
peekNodeMemory
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
-
length
int length()Returns the number of positions in this memory- Returns:
-
resetAllMemories
-