org.jboss.cache
Class OptimisticTreeNode

java.lang.Object
  |
  +--org.jboss.cache.AbstractNode
        |
        +--org.jboss.cache.Node
              |
              +--org.jboss.cache.OptimisticTreeNode
All Implemented Interfaces:
DataNode, java.io.Externalizable, java.io.Serializable, TreeNode

public class OptimisticTreeNode
extends Node

// TODO: MANIK: Javadoc this

Author:
Manik Surtani (manik@jboss.org)
See Also:
Serialized Form

Field Summary
protected  long version
           
 
Fields inherited from class org.jboss.cache.AbstractNode
children, data, fqn, INDENT, name, parent
 
Fields inherited from interface org.jboss.cache.DataNode
LOCK_TYPE_NONE, LOCK_TYPE_READ, LOCK_TYPE_WRITE, PRINT_LOCK_DETAILS
 
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 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)
           
 
Method Summary
 long getVersion()
          Gets the version id of this node
 void setVersion(long version)
          Sets the version id of this node.
 java.lang.String toString()
           
 
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, 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, getParent, hasChildren, print, printDetailsInMap, printIndent, put, removeAllChildren, removeChild, setChildren
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

version

protected long version
Constructor Detail

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 -
Method Detail

getVersion

public long getVersion()
Gets the version id of this node

Returns:
the version

setVersion

public void setVersion(long version)
Sets the version id of this node.

Parameters:
version -

toString

public java.lang.String toString()
Overrides:
toString in class Node


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.