|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.AbstractNode<K,V>
org.jboss.cache.UnversionedNode<K,V>
org.jboss.cache.PessimisticUnversionedNode<K,V>
@Deprecated public class PessimisticUnversionedNode<K,V>
UnversionedNode specific to pessimistic locking, with legacy code.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jboss.cache.AbstractNode |
|---|
AbstractNode.NodeFlags |
| Field Summary | |
|---|---|
protected IdentityLock |
lock
Deprecated. Lock manager that manages locks to be acquired when accessing the node inside a transaction. |
protected LockStrategyFactory |
lockStrategyFactory
Deprecated. |
protected NodeFactory<K,V> |
nodeFactory
Deprecated. |
| Fields inherited from class org.jboss.cache.UnversionedNode |
|---|
cache, data, delegate, log, trace |
| Fields inherited from class org.jboss.cache.AbstractNode |
|---|
children, flags, fqn |
| Constructor Summary | |
|---|---|
PessimisticUnversionedNode(Object name,
Fqn fqn,
Map<K,V> data,
CacheSPI<K,V> cache)
Deprecated. |
|
| Method Summary | |
|---|---|
NodeSPI<K,V> |
addChildAndAcquireLock(Object o,
boolean notify,
PessimisticNodeBasedLockManager.LockAcquirer la)
Deprecated. |
NodeSPI<K,V> |
addChildDirect(Fqn f)
Deprecated. |
NodeSPI<K,V> |
addChildDirect(Fqn f,
boolean notify)
Deprecated. |
void |
addChildDirect(NodeSPI<K,V> child)
Deprecated. |
NodeSPI<K,V> |
addChildDirect(Object o,
boolean notify)
Deprecated. |
void |
addChildDirect(Object nodeName,
Node<K,V> nodeToAdd)
Deprecated. |
InternalNode<K,V> |
copy()
Deprecated. Creates a new instance of the same type and copies internal state. |
NodeSPI<K,V> |
getChildDirect(Fqn fqn)
Deprecated. |
NodeSPI<K,V> |
getChildDirect(Object childName)
Deprecated. |
Set<NodeSPI<K,V>> |
getChildrenDirect()
Deprecated. |
Set<NodeSPI<K,V>> |
getChildrenDirect(boolean includeMarkedForRemoval)
Deprecated. |
Map<Object,Node<K,V>> |
getChildrenMapDirect()
Deprecated. |
IdentityLock |
getLock()
Deprecated. |
NodeSPI<K,V> |
getOrCreateChild(Object childName,
GlobalTransaction gtx)
Deprecated. |
protected void |
initLock()
Deprecated. |
void |
injectDependencies(CacheSPI<K,V> spi,
CommandsFactory commandsFactory,
NodeFactory<K,V> nodeFactory)
Deprecated. |
void |
injectLockStrategyFactory(LockStrategyFactory lockStrategyFactory)
Deprecated. |
void |
markAsRemoved(boolean marker,
boolean recursive)
Deprecated. |
protected void |
printDetailsInMap(StringBuilder sb,
int indent)
Deprecated. Adds details of the node into a map as strings. |
void |
releaseObjectReferences(boolean recursive)
Deprecated. |
void |
setChildrenMapDirect(Map<Object,Node<K,V>> children)
Deprecated. |
void |
setFqn(Fqn fqn)
Deprecated. Sets the node's Fqn |
void |
setValid(boolean valid,
boolean recursive)
Deprecated. |
String |
toString()
Deprecated. Returns a debug string. |
| Methods inherited from class org.jboss.cache.UnversionedNode |
|---|
addChild, addChild, addChild, clear, containsKey, copyDataMap, copyInternals, downgradeDataMapIfNeeded, get, getCache, getChild, getChild, getChildren, getChildren, getChildrenMap, getChildrenNames, getData, getDelegate, getFqn, getInternalState, getKeys, getParent, hasChildren, initFlags, isChildrenLoaded, isDataLoaded, isLockForChildInsertRemove, isValid, printDetails, printIndent, put, putAll, remove, removeChild, removeChild, removeChildren, setChildrenLoaded, setChildrenMap, setDataLoaded, setDelegate, setInternalState, setLockForChildInsertRemove, upgradeDataMap |
| Methods inherited from class org.jboss.cache.AbstractNode |
|---|
equals, getVersion, hashCode, isFlagSet, isRemoved, isResident, setFlag, setFlag, setRemoved, setResident, setVersion, unsetFlag |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.cache.InternalNode |
|---|
getVersion, isRemoved, isResident, setRemoved, setResident, setVersion |
| Field Detail |
|---|
protected transient volatile IdentityLock lock
protected LockStrategyFactory lockStrategyFactory
protected NodeFactory<K,V> nodeFactory
| Constructor Detail |
|---|
public PessimisticUnversionedNode(Object name,
Fqn fqn,
Map<K,V> data,
CacheSPI<K,V> cache)
| Method Detail |
|---|
public void injectLockStrategyFactory(LockStrategyFactory lockStrategyFactory)
public void injectDependencies(CacheSPI<K,V> spi,
CommandsFactory commandsFactory,
NodeFactory<K,V> nodeFactory)
protected void initLock()
public IdentityLock getLock()
getLock in interface InternalNode<K,V>getLock in class AbstractNode<K,V>public String toString()
UnversionedNode
toString in class UnversionedNode<K,V>public InternalNode<K,V> copy()
InternalNode
copy in interface InternalNode<K,V>copy in class UnversionedNode<K,V>public void addChildDirect(NodeSPI<K,V> child)
addChildDirect in interface InternalNode<K,V>addChildDirect in class AbstractNode<K,V>
public NodeSPI<K,V> addChildDirect(Fqn f,
boolean notify)
addChildDirect in interface InternalNode<K,V>addChildDirect in class AbstractNode<K,V>
public NodeSPI<K,V> addChildDirect(Object o,
boolean notify)
addChildDirect in interface InternalNode<K,V>addChildDirect in class AbstractNode<K,V>
public NodeSPI<K,V> addChildAndAcquireLock(Object o,
boolean notify,
PessimisticNodeBasedLockManager.LockAcquirer la)
public NodeSPI<K,V> getChildDirect(Fqn fqn)
getChildDirect in interface InternalNode<K,V>getChildDirect in class AbstractNode<K,V>public NodeSPI<K,V> getChildDirect(Object childName)
getChildDirect in interface InternalNode<K,V>getChildDirect in class AbstractNode<K,V>public Set<NodeSPI<K,V>> getChildrenDirect()
getChildrenDirect in interface InternalNode<K,V>getChildrenDirect in class AbstractNode<K,V>public Map<Object,Node<K,V>> getChildrenMapDirect()
getChildrenMapDirect in interface InternalNode<K,V>getChildrenMapDirect in class AbstractNode<K,V>public void setChildrenMapDirect(Map<Object,Node<K,V>> children)
setChildrenMapDirect in interface InternalNode<K,V>setChildrenMapDirect in class AbstractNode<K,V>
public void addChildDirect(Object nodeName,
Node<K,V> nodeToAdd)
addChildDirect in interface InternalNode<K,V>addChildDirect in class AbstractNode<K,V>public Set<NodeSPI<K,V>> getChildrenDirect(boolean includeMarkedForRemoval)
getChildrenDirect in interface InternalNode<K,V>getChildrenDirect in class AbstractNode<K,V>public NodeSPI<K,V> addChildDirect(Fqn f)
addChildDirect in interface InternalNode<K,V>addChildDirect in class AbstractNode<K,V>
public NodeSPI<K,V> getOrCreateChild(Object childName,
GlobalTransaction gtx)
getOrCreateChild in interface InternalNode<K,V>getOrCreateChild in class AbstractNode<K,V>
public void markAsRemoved(boolean marker,
boolean recursive)
markAsRemoved in interface InternalNode<K,V>markAsRemoved in class UnversionedNode<K,V>
public void setValid(boolean valid,
boolean recursive)
setValid in interface InternalNode<K,V>setValid in class UnversionedNode<K,V>
protected void printDetailsInMap(StringBuilder sb,
int indent)
printDetailsInMap in class UnversionedNode<K,V>public void setFqn(Fqn fqn)
InternalNode
setFqn in interface InternalNode<K,V>setFqn in class UnversionedNode<K,V>fqn - Fqn to set topublic void releaseObjectReferences(boolean recursive)
releaseObjectReferences in interface InternalNode<K,V>releaseObjectReferences in class UnversionedNode<K,V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||