org.jboss.cache
Class VersionedNode<K,V>
java.lang.Object
org.jboss.cache.AbstractNode<K,V>
org.jboss.cache.UnversionedNode<K,V>
org.jboss.cache.VersionedNode<K,V>
public class VersionedNode<K,V>
- extends UnversionedNode<K,V>
VersionedNode extends the UnversionedNode by adding a DataVersion property.
Unlike UnversionedNode, this node supports getVersion() and setVersion(org.jboss.cache.optimistic.DataVersion)
defined in NodeSPI
Typically used when the cache mode configured is Configuration.NodeLockingScheme.OPTIMISTIC
- Since:
- 2.0.0
- Author:
- Manik Surtani (manik@jboss.org)
| Methods inherited from class org.jboss.cache.UnversionedNode |
addChild, addChildDirect, addChildDirect, addChildDirect, addChildDirect, clearDataDirect, get, getCache, getDataDirect, getDelegate, getDirect, getFqn, getChildDirect, getChildDirect, getChildrenDirect, getChildrenDirect, getChildrenMapDirect, getChildrenNamesDirect, getKeysDirect, getLock, getOrCreateChild, hasChildrenDirect, isDataLoaded, isChildrenLoaded, isLockForChildInsertRemove, isValid, printDetails, put, putAll, putAllDirect, putDirect, releaseObjectReferences, remove, removeDirect, removeChildDirect, removeChildDirect, removeChildrenDirect, setDataLoaded, setDelegate, setFqn, setChildrenLoaded, setChildrenMapDirect, setLockForChildInsertRemove, setValid, toString |
VersionedNode
protected VersionedNode(Fqn fqn,
NodeSPI<K,V> parent,
Map<K,V> data,
CacheSPI<K,V> cache)
getVersion
public DataVersion getVersion()
- Returns the version id of this node.
- Overrides:
getVersion in class UnversionedNode<K,V>
- Returns:
- the version
getParent
public NodeSPI<K,V> getParent()
- Returns the parent.
- Overrides:
getParent in class UnversionedNode<K,V>
setVersion
public void setVersion(DataVersion version)
- Sets the version id of this node.
- Overrides:
setVersion in class UnversionedNode<K,V>
- Parameters:
version -
getInternalState
public Map getInternalState(boolean onlyInternalState)
- Overrides:
getInternalState in class UnversionedNode<K,V>
setInternalState
public void setInternalState(Map state)
- Overrides:
setInternalState in class UnversionedNode<K,V>
Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.