Skip navigation links
com.tangosol.util
Class SafeSortedMap.DeletedNode
java.lang.Object
com.tangosol.util.SafeSortedMap.SkipNode
com.tangosol.util.SafeSortedMap.DeletedNode
- Enclosing class:
- SafeSortedMap
-
protected class SafeSortedMap.DeletedNode
- extends SafeSortedMap.SkipNode
DeletedNode is a SkipNode that is used as a marker during deletion. The delete sequence for deleting a node n such that p->n->s is as follows:
- synchronize on the map
- create a new DeletedNode marker m with s as the next node
- set the next node of n to be m
- set the next node of p to be s
This ensures that intervening reads will always see a safe state of the map.
SafeSortedMap.DeletedNode
protected SafeSortedMap.DeletedNode(java.lang.Object oKey,
SafeSortedMap.SkipNode nodeNext)
- Construct a DeletedNode
isDeleted
protected boolean isDeleted()
- Has this SkipNode been deleted?
-
- Overrides:
isDeleted
in class SafeSortedMap.SkipNode
-
- Returns:
- true iff this SkipNode has been deleted
getDescription
public java.lang.String getDescription()
-
- Overrides:
getDescription
in class SafeSortedMap.SkipNode
Skip navigation links
Copyright © 2000, 2009, Oracle. All rights reserved.