|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.AbstractNodeFactory<K,V> org.jboss.cache.mvcc.MVCCNodeFactory<K,V>
public class MVCCNodeFactory<K,V>
Creates nodes specific to MVCC logic.
Field Summary |
---|
Fields inherited from class org.jboss.cache.AbstractNodeFactory |
---|
cache, commandsFactory, componentRegistry, configuration, dataContainer, interceptorChain, invocationContextContainer, useVersionedNode |
Constructor Summary | |
---|---|
MVCCNodeFactory()
|
Method Summary | |
---|---|
InternalNode<K,V> |
createChildNode(Fqn fqn,
InternalNode<K,V> parent,
InvocationContext ctx,
boolean attachToParent)
Creates a new node, and optionally attaches the node to its parent. |
InternalNode<K,V> |
createInternalNode(Fqn fqn)
Creates an internal node. |
NodeSPI<K,V> |
createNode(Fqn fqn,
NodeSPI<K,V> parent)
Creates a new, empty node. |
NodeSPI<K,V> |
createNode(Fqn fqn,
NodeSPI<K,V> parent,
Map<K,V> data)
Creates a new node and populates its attributes. |
NodeSPI<K,V> |
createNode(Object childName,
NodeSPI<K,V> parent)
Creates a new, empty node. |
NodeSPI<K,V> |
createNode(Object childName,
NodeSPI<K,V> parent,
Map<K,V> data)
Creates a new node and populates its attributes. |
NodeSPI<K,V> |
createRootNode()
|
ReadCommittedNode |
createWrappedNode(InternalNode<K,V> node,
InternalNode<K,V> parent)
Creates an MVCC wrapped node - either a ReadCommittedNode or its subclass, a
RepeatableReadNode based on cache configuration. |
ReadCommittedNode |
createWrappedNodeForRemoval(Fqn fqn,
InternalNode<K,V> node,
InternalNode<K,V> parent)
|
void |
init()
Initialises the node factory with the configuration from the cache. |
Methods inherited from class org.jboss.cache.AbstractNodeFactory |
---|
createInternalNode, createWrappedNode, injectDependencies |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MVCCNodeFactory()
Method Detail |
---|
public void init()
public ReadCommittedNode createWrappedNode(InternalNode<K,V> node, InternalNode<K,V> parent)
ReadCommittedNode
or its subclass, a
RepeatableReadNode
based on cache configuration. If a null is passed in as the InternalNode,
this method will return a special NullMarkerNode
instance if using repeatable read,
or a null if read committed.
createWrappedNode
in interface NodeFactory<K,V>
createWrappedNode
in class AbstractNodeFactory<K,V>
node
- internal node to wrap.
public ReadCommittedNode createWrappedNodeForRemoval(Fqn fqn, InternalNode<K,V> node, InternalNode<K,V> parent)
createWrappedNodeForRemoval
in interface NodeFactory<K,V>
createWrappedNodeForRemoval
in class AbstractNodeFactory<K,V>
public NodeSPI<K,V> createNode(Fqn fqn, NodeSPI<K,V> parent, Map<K,V> data)
NodeFactory
createNode
in interface NodeFactory<K,V>
createNode
in class AbstractNodeFactory<K,V>
public NodeSPI<K,V> createNode(Fqn fqn, NodeSPI<K,V> parent)
NodeFactory
createNode
in interface NodeFactory<K,V>
createNode
in class AbstractNodeFactory<K,V>
public NodeSPI<K,V> createRootNode()
createRootNode
in interface NodeFactory<K,V>
createRootNode
in class AbstractNodeFactory<K,V>
public InternalNode<K,V> createInternalNode(Fqn fqn)
NodeFactory
NodeFactory.createNode(Fqn, NodeSPI)
except that the resultant node is not wrapped
in a NodeInvocationDelegate
.
createInternalNode
in interface NodeFactory<K,V>
createInternalNode
in class AbstractNodeFactory<K,V>
public NodeSPI<K,V> createNode(Object childName, NodeSPI<K,V> parent, Map<K,V> data)
NodeFactory
createNode
in interface NodeFactory<K,V>
createNode
in class AbstractNodeFactory<K,V>
public NodeSPI<K,V> createNode(Object childName, NodeSPI<K,V> parent)
NodeFactory
createNode
in interface NodeFactory<K,V>
createNode
in class AbstractNodeFactory<K,V>
public InternalNode<K,V> createChildNode(Fqn fqn, InternalNode<K,V> parent, InvocationContext ctx, boolean attachToParent)
NodeFactory
createChildNode
in interface NodeFactory<K,V>
createChildNode
in class AbstractNodeFactory<K,V>
fqn
- fqn of node to create. Must not be null or root.parent
- parent to attach to. Must not be null, even if attachToParent is false.ctx
- invocation context to register with. Must not be null.attachToParent
- if true, the node is registered in the parent's child map. If false, it is not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |