protected static class SafeSortedMap.SkipNode extends Object
Modifier and Type | Field and Description |
---|---|
protected static AtomicReferenceFieldUpdater |
m_atomicUpdaterNext
AtomicUpdater for the casNext operation.
|
protected SafeSortedMap.SkipNode |
m_nodeBelow
The SkipNode "below" this one in the node lattice.
|
protected SafeSortedMap.EntryNode |
m_nodeEntry
The EntryNode indexed by this node in the lattice.
|
protected SafeSortedMap.SkipNode |
m_nodeNext
The SkipNode "below" this one in the node lattice.
|
Modifier | Constructor and Description |
---|---|
protected |
SkipNode(SafeSortedMap.SkipNode nodeBelow,
SafeSortedMap.EntryNode nodeEntry)
Construct a SkipNode according to the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
casNext(SafeSortedMap.SkipNode nodeAssume,
SafeSortedMap.SkipNode nodeNext)
Atomically set the specified next SkipNode iff the current next node
matches the expected node.
|
protected SafeSortedMap.SkipNode |
getBelow()
Return the node below this one in the skip-list.
|
protected SafeSortedMap.EntryNode |
getEntryNode()
Return the EntryNode below this one in the skip-list.
|
protected SafeSortedMap.SkipNode |
getNext()
Return the next node in this node-list.
|
protected void |
setNext(SafeSortedMap.SkipNode nodeNext)
Set the next node in this node-list.
|
protected static final AtomicReferenceFieldUpdater m_atomicUpdaterNext
protected final SafeSortedMap.EntryNode m_nodeEntry
protected final SafeSortedMap.SkipNode m_nodeBelow
protected volatile SafeSortedMap.SkipNode m_nodeNext
protected SkipNode(SafeSortedMap.SkipNode nodeBelow, SafeSortedMap.EntryNode nodeEntry)
nodeBelow
- the node "below" this, or nullnodeEntry
- the EntryNode that this SkipNode serves as an
index forprotected SafeSortedMap.SkipNode getNext()
protected void setNext(SafeSortedMap.SkipNode nodeNext)
nodeNext
- the next node in this node-listprotected boolean casNext(SafeSortedMap.SkipNode nodeAssume, SafeSortedMap.SkipNode nodeNext)
nodeAssume
- the assumed "next" SkipNodenodeNext
- the new "next" SkipNodeprotected SafeSortedMap.SkipNode getBelow()
protected SafeSortedMap.EntryNode getEntryNode()