@Deprecated public class VersionedNode<K,V> extends PessimisticUnversionedNode<K,V>
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.OPTIMISTICAbstractNode.NodeFlagslock, lockStrategyFactory, nodeFactorychildren, flags, fqn| Constructor and Description |
|---|
VersionedNode(Fqn fqn,
NodeSPI<K,V> parent,
Map<K,V> data,
CacheSPI<K,V> cache)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
VersionedNode |
copy()
Deprecated.
Creates a new instance of the same type and copies internal state.
|
Map |
getInternalState(boolean onlyInternalState)
Deprecated.
|
NodeSPI<K,V> |
getParent()
Deprecated.
Returns the parent.
|
DataVersion |
getVersion()
Deprecated.
Returns the version id of this node.
|
protected void |
initLock()
Deprecated.
Optimistically locked nodes (VersionedNodes) will always use repeatable read.
|
void |
setInternalState(Map state)
Deprecated.
|
void |
setVersion(DataVersion version)
Deprecated.
Sets the version id of this node.
|
addChildAndAcquireLock, addChildDirect, addChildDirect, addChildDirect, addChildDirect, addChildDirect, getChildDirect, getChildDirect, getChildrenDirect, getChildrenDirect, getChildrenMapDirect, getLock, getOrCreateChild, injectDependencies, injectLockStrategyFactory, markAsRemoved, printDetailsInMap, releaseObjectReferences, setChildrenMapDirect, setFqn, setValid, toStringaddChild, addChild, addChild, clear, containsKey, copyDataMap, copyInternals, downgradeDataMapIfNeeded, get, getCache, getChild, getChild, getChildren, getChildren, getChildrenMap, getChildrenNames, getData, getDelegate, getFqn, getKeys, hasChildren, initFlags, isChildrenLoaded, isDataLoaded, isLockForChildInsertRemove, isValid, printDetails, printIndent, put, putAll, remove, removeChild, removeChild, removeChildren, setChildrenLoaded, setChildrenMap, setDataLoaded, setDelegate, setLockForChildInsertRemove, upgradeDataMapequals, hashCode, isFlagSet, isRemoved, isResident, setFlag, setFlag, setRemoved, setResident, unsetFlagclone, finalize, getClass, notify, notifyAll, wait, wait, waitisRemoved, isResident, setRemoved, setResidentpublic DataVersion getVersion()
getVersion in interface InternalNode<K,V>getVersion in class AbstractNode<K,V>public NodeSPI<K,V> getParent()
getParent in interface InternalNode<K,V>getParent in class UnversionedNode<K,V>public void setVersion(DataVersion version)
setVersion in interface InternalNode<K,V>setVersion in class AbstractNode<K,V>version - protected void initLock()
initLock in class PessimisticUnversionedNode<K,V>public Map getInternalState(boolean onlyInternalState)
getInternalState in interface InternalNode<K,V>getInternalState in class UnversionedNode<K,V>public void setInternalState(Map state)
setInternalState in interface InternalNode<K,V>setInternalState in class UnversionedNode<K,V>public VersionedNode copy()
InternalNodecopy in interface InternalNode<K,V>copy in class PessimisticUnversionedNode<K,V>Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.