|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thimbleware.jmemcached.storage.hash.ConcurrentLinkedHashMap.Node<K,V>
protected static final class ConcurrentLinkedHashMap.Node<K,V>
A node on the double-linked list. This list cross-cuts the data store.
| Constructor Summary | |
|---|---|
ConcurrentLinkedHashMap.Node(K key,
V value,
ConcurrentLinkedHashMap.Node<K,V> sentinel,
java.util.concurrent.locks.Lock lock)
Creates a new, unlinked node. |
|
ConcurrentLinkedHashMap.Node(java.util.concurrent.locks.Lock lock)
Creates a new sentinel node. |
|
| Method Summary | |
|---|---|
void |
appendToTail()
Appends the node to the tail of the list. |
boolean |
casValue(V expect,
V update)
|
boolean |
equals(java.lang.Object obj)
Only ensures that the values are equal, as the key may be null for look-ups. |
V |
getAndSetValue(V value)
|
K |
getKey()
|
ConcurrentLinkedHashMap.Node<K,V> |
getNext()
|
ConcurrentLinkedHashMap.Node<K,V> |
getPrev()
|
V |
getValue()
|
int |
hashCode()
|
boolean |
isMarked()
|
boolean |
isTail()
Checks whether the node is the last linked on the list chain. |
boolean |
isUnlinked()
Checks whether the node is linked on the list chain. |
void |
moveToTail()
Moves the node to the tail. |
void |
remove()
Removes the node from the list. |
void |
setMarked(boolean marked)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConcurrentLinkedHashMap.Node(java.util.concurrent.locks.Lock lock)
public ConcurrentLinkedHashMap.Node(K key,
V value,
ConcurrentLinkedHashMap.Node<K,V> sentinel,
java.util.concurrent.locks.Lock lock)
| Method Detail |
|---|
public void appendToTail()
public void remove()
public void moveToTail()
public boolean isUnlinked()
public boolean isTail()
public K getKey()
public V getValue()
public V getAndSetValue(V value)
public boolean casValue(V expect,
V update)
public ConcurrentLinkedHashMap.Node<K,V> getPrev()
public ConcurrentLinkedHashMap.Node<K,V> getNext()
public boolean isMarked()
public void setMarked(boolean marked)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||