Class NodeFactory.WWWR<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.NodeFactory.WW<K,V>
com.github.benmanes.caffeine.cache.NodeFactory.WWW<K,V>
com.github.benmanes.caffeine.cache.NodeFactory.WWWR<K,V>
- All Implemented Interfaces:
AccessOrderDeque.AccessOrder<Node<K,
,V>> Node<K,
,V> WriteOrderDeque.WriteOrder<Node<K,
V>>
- Direct Known Subclasses:
NodeFactory.WWWRMS
,NodeFactory.WWWRMW
- Enclosing class:
- NodeFactory
-
Field Summary
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WWW
WRITE_TIME_OFFSET
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WW
KEY_OFFSET, VALUE_OFFSET
-
Constructor Summary
ConstructorsConstructorDescriptionWWWR
(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) WWWR
(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
casWriteTime
(long expect, long update) Atomically sets the write time to the given updated value if the current value equals the expected value and returns if the update was successful.Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WWW
getNextInWriteOrder, getPreviousInWriteOrder, getWriteTime, setNextInWriteOrder, setPreviousInWriteOrder, setWriteTime
Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WW
containsValue, die, getKey, getKeyReference, getValue, getValueReference, isAlive, isDead, isRetired, retire, setValue, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.benmanes.caffeine.cache.Node
getAccessTime, getNextInAccessOrder, getPolicyWeight, getPreviousInAccessOrder, getQueueType, getWeight, inEden, inMainProbation, inMainProtected, makeMainProbation, makeMainProtected, setAccessTime, setNextInAccessOrder, setPolicyWeight, setPreviousInAccessOrder, setQueueType, setWeight
-
Constructor Details
-
WWWR
WWWR(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
WWWR
WWWR(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now)
-
-
Method Details
-
casWriteTime
public final boolean casWriteTime(long expect, long update) Description copied from interface:Node
Atomically sets the write time to the given updated value if the current value equals the expected value and returns if the update was successful.
-