|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.SafeSortedMap.EntryNode
protected static class SafeSortedMap.EntryNode
EntryNode represents a key-value mapping in this map.
| Nested Class Summary | |
|---|---|
protected class |
SafeSortedMap.EntryNode.MapEntryA Map.Entry view of the EntryNode. |
| Field Summary | |
|---|---|
protected static java.util.concurrent.atomic.AtomicReferenceFieldUpdater |
m_atomicUpdaterNextAtomicUpdater for the casNext operation. |
protected static java.util.concurrent.atomic.AtomicReferenceFieldUpdater |
m_atomicUpdaterValueAtomicUpdater for the casValue operation. |
protected SafeSortedMap.EntryNode |
m_nodeNextThe next SkipNode in the list. |
protected java.lang.Object |
m_oKeyThe key represented by this Node. |
protected java.lang.Object |
m_oValueThe value represented by this EntryNode. |
| Constructor Summary | |
|---|---|
protected |
SafeSortedMap.EntryNode(java.lang.Object oKey, java.lang.Object oValue)Construct an EntryNode for the specified key and value. |
protected |
SafeSortedMap.EntryNode(java.lang.Object oKey, java.lang.Object oValue, SafeSortedMap.EntryNode nodeNext)Construct an EntryNode for the specified key, value and next node. |
| Method Summary | |
|---|---|
protected boolean |
casNext(java.lang.Object nodeAssume, java.lang.Object nodeNext)Atomically set the next EntryNode to the specified node iff the current next EntryNode matches the expected node. |
protected boolean |
casValue(java.lang.Object oValueAssume, java.lang.Object oValueNew)Atomically set the value of this EntryNode to the specified value iff the current value matches the assumed value. |
java.lang.Object |
getKey()Return the key that this node represents. |
protected SafeSortedMap.EntryNode.MapEntry |
getMapEntry()Return a MapEntry view of this EntryNode, suitable for returning to the EntrySet iterator. |
protected SafeSortedMap.EntryNode |
getNext()Return the next EntryNode in the entry list. |
java.lang.Object |
getValue()Return the value that this node represents. |
protected java.lang.Object |
getValueInternal()Return the value associated with the Map entry (could be NO_VALUE). |
void |
helpDelete(SafeSortedMap.EntryNode nodePrev, SafeSortedMap.EntryNode nodeNext)Called when a deleted EntryNode is encountered during a map traversal to help the deletion process complete. |
boolean |
isDeleted()Return true iff this EntryNode has been deleted. |
boolean |
markForDelete(SafeSortedMap.EntryNode nodeNext)Attempt to mark this EntryNode for deletion by appending a delete marker to follow this EntryNode, assuming that the expected nex EntryNode is the next. |
protected void |
setNext(SafeSortedMap.EntryNode nodeNext)Set the next EntryNode in the entry list. |
java.lang.String |
toString()Return a String representation of the SkipNode. |
| Field Detail |
|---|
protected static final java.util.concurrent.atomic.AtomicReferenceFieldUpdater m_atomicUpdaterNext
protected static final java.util.concurrent.atomic.AtomicReferenceFieldUpdater m_atomicUpdaterValue
protected final java.lang.Object m_oKey
protected volatile java.lang.Object m_oValue
protected volatile SafeSortedMap.EntryNode m_nodeNext
| Constructor Detail |
|---|
protected SafeSortedMap.EntryNode(java.lang.Object oKey,
java.lang.Object oValue)
oKey - the key that this EntryNode representsoValue - the value that this EntryNode represents
protected SafeSortedMap.EntryNode(java.lang.Object oKey,
java.lang.Object oValue,
SafeSortedMap.EntryNode nodeNext)
oKey - the key that this EntryNode representsoValue - the value that this EntryNode representsnodeNext - the node to set as the "next" node| Method Detail |
|---|
public boolean isDeleted()
public boolean markForDelete(SafeSortedMap.EntryNode nodeNext)
nodeNext - the expected "next" EntryNode
public void helpDelete(SafeSortedMap.EntryNode nodePrev,
SafeSortedMap.EntryNode nodeNext)
nodePrev - the assumed predecessor to this EntryNodenodeNext - the assumed successor to this EntryNodepublic java.lang.Object getKey()
public java.lang.Object getValue()
protected boolean casValue(java.lang.Object oValueAssume,
java.lang.Object oValueNew)
oValueAssume - the assumed valueoValueNew - the new valueprotected SafeSortedMap.EntryNode.MapEntry getMapEntry()
public java.lang.String toString()
protected java.lang.Object getValueInternal()
protected SafeSortedMap.EntryNode getNext()
protected void setNext(SafeSortedMap.EntryNode nodeNext)
nodeNext - the next EntryNode in the entry list
protected boolean casNext(java.lang.Object nodeAssume,
java.lang.Object nodeNext)
nodeAssume - the assumed "next" EntryNodenodeNext - the new "next" EntryNode
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||