public class ConcurrentNodeMemories extends Object implements NodeMemories
Constructor and Description |
---|
ConcurrentNodeMemories(InternalKnowledgeBase kBase,
String unitName) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clearNodeMemory(MemoryFactory node) |
Memory |
getNodeMemory(MemoryFactory node,
InternalWorkingMemory wm)
The implementation tries to delay locking as much as possible, by running
some potentially unsafe operations out of the critical session.
|
int |
length()
Returns the number of positions in this memory
|
Memory |
peekNodeMemory(int memoryId)
Peeks at the content of the node memory for the given
node ID.
|
void |
resetAllMemories(org.kie.internal.runtime.StatefulKnowledgeSession session) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
peekNodeMemory
public ConcurrentNodeMemories(InternalKnowledgeBase kBase, String unitName)
public void clearNodeMemory(MemoryFactory node)
clearNodeMemory
in interface NodeMemories
public void clear()
clear
in interface NodeMemories
public void resetAllMemories(org.kie.internal.runtime.StatefulKnowledgeSession session)
resetAllMemories
in interface NodeMemories
public Memory getNodeMemory(MemoryFactory node, InternalWorkingMemory wm)
getNodeMemory
in interface NodeMemories
public Memory peekNodeMemory(int memoryId)
NodeMemories
peekNodeMemory
in interface NodeMemories
public int length()
NodeMemories
length
in interface NodeMemories
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.