org.jboss.cache
Class OptimisticTreeNode
java.lang.Object
org.jboss.cache.AbstractNode
org.jboss.cache.Node
org.jboss.cache.OptimisticTreeNode
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, DataNode, TreeNode
public class OptimisticTreeNode
- extends Node
OptimisticTreeNode contains a data version.
- Author:
- Manik Surtani (manik@jboss.org)
- See Also:
- Serialized Form
Constructor Summary |
OptimisticTreeNode()
|
OptimisticTreeNode(java.lang.Object child_name,
Fqn fqn,
Node parent,
java.util.Map data,
boolean mapSafe,
TreeCache cache)
|
OptimisticTreeNode(java.lang.Object childName,
Fqn fqn,
Node parent,
java.util.Map data,
boolean mapSafe,
TreeCache cache,
DataVersion version)
|
OptimisticTreeNode(java.lang.Object child_name,
Fqn fqn,
Node parent,
java.util.Map data,
TreeCache cache)
|
OptimisticTreeNode(java.lang.Object child_name,
Fqn fqn,
Node parent,
java.lang.Object key,
java.lang.Object value,
TreeCache cache)
|
Methods inherited from class org.jboss.cache.Node |
acquire, acquireAll, acquireReadLock, acquireWriteLock, children, clear, clone, containsKey, createChild, createChild, get, getChildrenLoaded, getData, getDataKeys, getImmutableLock, getLock, getOrCreateChild, init, isLocked, numAttributes, printDetails, printLockInfo, put, put, readExternal, release, releaseAll, releaseAllForce, releaseForce, remove, setChildrenLoaded, setRecursiveTreeCacheInstance, writeExternal |
Methods inherited from class org.jboss.cache.AbstractNode |
addChild, childExists, data, getChild, getChildren, getFqn, getName, hasChildren, print, printDetailsInMap, printIndent, put, removeAllChildren, removeChild, setChildren |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OptimisticTreeNode
public OptimisticTreeNode()
OptimisticTreeNode
public OptimisticTreeNode(java.lang.Object child_name,
Fqn fqn,
Node parent,
java.util.Map data,
TreeCache cache)
- Parameters:
child_name
- fqn
- parent
- data
- cache
-
OptimisticTreeNode
public OptimisticTreeNode(java.lang.Object child_name,
Fqn fqn,
Node parent,
java.util.Map data,
boolean mapSafe,
TreeCache cache)
- Parameters:
child_name
- fqn
- parent
- data
- cache
-
OptimisticTreeNode
public OptimisticTreeNode(java.lang.Object child_name,
Fqn fqn,
Node parent,
java.lang.Object key,
java.lang.Object value,
TreeCache cache)
- Parameters:
child_name
- fqn
- parent
- key
- value
- cache
-
OptimisticTreeNode
public OptimisticTreeNode(java.lang.Object childName,
Fqn fqn,
Node parent,
java.util.Map data,
boolean mapSafe,
TreeCache cache,
DataVersion version)
getVersion
public DataVersion getVersion()
- Returns the version id of this node.
- Returns:
- the version
getParent
public TreeNode getParent()
- Returns the parent.
- Specified by:
getParent
in interface TreeNode
- Overrides:
getParent
in class Node
setVersion
public void setVersion(DataVersion version)
- Sets the version id of this node.
- Parameters:
version
-
toString
public java.lang.String toString()
- Description copied from class:
Node
- Returns a debug string.
- Overrides:
toString
in class Node
Copyright © 1998-2005 JBoss Inc . All Rights Reserved.