|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.invocation.AbstractInvocationDelegate org.jboss.cache.invocation.NodeInvocationDelegate org.jboss.cache.mvcc.ReadCommittedNode org.jboss.cache.mvcc.RepeatableReadNode org.jboss.cache.mvcc.NullMarkerNodeForRemoval
public class NullMarkerNodeForRemoval
A specific type of null marker node, used for removal of nodes that don't exist
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jboss.cache.mvcc.ReadCommittedNode |
---|
ReadCommittedNode.Flags |
Field Summary |
---|
Fields inherited from class org.jboss.cache.mvcc.ReadCommittedNode |
---|
backup, flags, parent |
Fields inherited from class org.jboss.cache.invocation.NodeInvocationDelegate |
---|
node |
Fields inherited from class org.jboss.cache.invocation.AbstractInvocationDelegate |
---|
componentRegistry, configuration, invocationContextContainer, invoker, originLocal |
Constructor Summary | |
---|---|
NullMarkerNodeForRemoval(InternalNode parent,
Fqn fqn)
|
Method Summary | |
---|---|
Set |
getChildrenDirect()
Functionally the same as Node.getChildren() except that it operates directly on the node and bypasses the
interceptor chain. |
Set |
getChildrenNamesDirect()
Functionally the same as Node.getChildrenNames() except that it operates directly on the node and bypasses the
interceptor chain. |
Map |
getDataDirect()
Functionally the same as Node.getData() except that it operates directly on the node and bypasses the
interceptor chain. |
Fqn |
getFqn()
Returns the Fqn which represents the location of this Node in the cache structure. |
boolean |
isDeleted()
Returns true if the instance has been deleted in the current transaction. |
boolean |
isNullNode()
|
boolean |
isValid()
Tests if a node reference is still valid. |
void |
setValid(boolean valid,
boolean recursive)
Sets the validity of a node. |
protected void |
updateNode(Fqn fqn,
InvocationContext ctx,
DataContainer dataContainer)
Updates state changes on the current node in the underlying data structure. |
Methods inherited from class org.jboss.cache.mvcc.RepeatableReadNode |
---|
markForUpdate |
Methods inherited from class org.jboss.cache.mvcc.ReadCommittedNode |
---|
commitUpdate, getInternalParent, isChanged, isCreated, isFlagSet, lookupParent, markAsDeleted, markAsDeleted, rollbackUpdate, setChildrenLoaded, setCreated, setDataLoaded, setFlag, unsetFlag |
Methods inherited from class org.jboss.cache.invocation.AbstractInvocationDelegate |
---|
assertIsConstructed, initialize |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NullMarkerNodeForRemoval(InternalNode parent, Fqn fqn)
Method Detail |
---|
public Fqn getFqn()
Node
Fqn
which represents the location of this Node
in the cache structure. The Fqn
returned is absolute.
getFqn
in interface Node
getFqn
in class NodeInvocationDelegate
Fqn
which represents the location of this Node
in the cache structure. The Fqn
returned is absolute.public boolean isNullNode()
isNullNode
in interface NodeSPI
isNullNode
in class ReadCommittedNode
public boolean isValid()
Node
NodeNotValidException
.
isValid
in interface Node
isValid
in class NodeInvocationDelegate
public boolean isDeleted()
NodeSPI
isDeleted
in interface NodeSPI
isDeleted
in class ReadCommittedNode
protected void updateNode(Fqn fqn, InvocationContext ctx, DataContainer dataContainer)
ReadCommittedNode
updateNode
in class RepeatableReadNode
ctx
- invocation contextdataContainer
- data containerpublic Map getDataDirect()
NodeSPI
Node.getData()
except that it operates directly on the node and bypasses the
interceptor chain.
Note that this returns a reference to access the node's data.
This data should only be modified by the cache itself.
This method should never return null.
The caller needs to ensure a proper lock has been obtained prior to calling this method, otherwise a
LockingException
will be thrown.
getDataDirect
in interface NodeSPI
getDataDirect
in class NodeInvocationDelegate
Node.getData()
public Set getChildrenNamesDirect()
NodeSPI
Node.getChildrenNames()
except that it operates directly on the node and bypasses the
interceptor chain.
The caller needs to ensure a proper lock has been obtained prior to calling this method, otherwise a
LockingException
will be thrown.
getChildrenNamesDirect
in interface NodeSPI
getChildrenNamesDirect
in class NodeInvocationDelegate
Node.getChildrenNames()
public Set getChildrenDirect()
NodeSPI
Node.getChildren()
except that it operates directly on the node and bypasses the
interceptor chain.
The caller needs to ensure a proper lock has been obtained prior to calling this method, otherwise a
LockingException
will be thrown.
getChildrenDirect
in interface NodeSPI
getChildrenDirect
in class NodeInvocationDelegate
Node.getChildren()
public void setValid(boolean valid, boolean recursive)
NodeSPI
Node.isValid()
.
setValid
in interface NodeSPI
setValid
in class NodeInvocationDelegate
valid
- if true, the node is marked as valid; if false, the node is invalid.recursive
- if true, the validity flag passed in is applied to all children as well.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |