public class MVCCNodeFactory<K,V> extends AbstractNodeFactory<K,V>
cache, commandsFactory, componentRegistry, configuration, dataContainer, interceptorChain, invocationContextContainer, useVersionedNode
Constructor and Description |
---|
MVCCNodeFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
createInternalNode, createWrappedNode, injectDependencies
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.Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.