|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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()
NodeFqn which represents the location of this Node in the cache structure. The Fqn returned is absolute.
getFqn in interface NodegetFqn in class NodeInvocationDelegateFqn which represents the location of this Node in the cache structure. The Fqn returned is absolute.public boolean isNullNode()
isNullNode in interface NodeSPIisNullNode in class ReadCommittedNodepublic boolean isValid()
NodeNodeNotValidException.
isValid in interface NodeisValid in class NodeInvocationDelegatepublic boolean isDeleted()
NodeSPI
isDeleted in interface NodeSPIisDeleted in class ReadCommittedNode
protected void updateNode(Fqn fqn,
InvocationContext ctx,
DataContainer dataContainer)
ReadCommittedNode
updateNode in class RepeatableReadNodectx - invocation contextdataContainer - data containerpublic Map getDataDirect()
NodeSPINode.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 NodeSPIgetDataDirect in class NodeInvocationDelegateNode.getData()public Set getChildrenNamesDirect()
NodeSPINode.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 NodeSPIgetChildrenNamesDirect in class NodeInvocationDelegateNode.getChildrenNames()public Set getChildrenDirect()
NodeSPINode.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 NodeSPIgetChildrenDirect in class NodeInvocationDelegateNode.getChildren()
public void setValid(boolean valid,
boolean recursive)
NodeSPINode.isValid().
setValid in interface NodeSPIsetValid in class NodeInvocationDelegatevalid - 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 | |||||||||