Class NodeFactory.SWAWR<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.NodeFactory.SW<K,V>
com.github.benmanes.caffeine.cache.NodeFactory.SWA<K,V>
com.github.benmanes.caffeine.cache.NodeFactory.SWAW<K,V>
com.github.benmanes.caffeine.cache.NodeFactory.SWAWR<K,V>
- All Implemented Interfaces:
AccessOrderDeque.AccessOrder<Node<K,
,V>> Node<K,
,V> WriteOrderDeque.WriteOrder<Node<K,
V>>
- Direct Known Subclasses:
NodeFactory.SWAWRMS
,NodeFactory.SWAWRMW
- Enclosing class:
- NodeFactory
-
Field Summary
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.SWAW
WRITE_TIME_OFFSET
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.SWA
ACCESS_TIME_OFFSET
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.SW
KEY_OFFSET, VALUE_OFFSET
-
Constructor Summary
ConstructorsConstructorDescriptionSWAWR
(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) SWAWR
(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.SWAW
getNextInWriteOrder, getPreviousInWriteOrder, getWriteTime, setNextInWriteOrder, setPreviousInWriteOrder, setWriteTime
Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.SWA
getAccessTime, getNextInAccessOrder, getPreviousInAccessOrder, setAccessTime, setNextInAccessOrder, setPreviousInAccessOrder
Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.SW
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
getPolicyWeight, getQueueType, getWeight, inEden, inMainProbation, inMainProtected, makeMainProbation, makeMainProtected, setPolicyWeight, setQueueType, setWeight
-
Constructor Details
-
SWAWR
SWAWR(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
SWAWR
SWAWR(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.
-