Class NodeFactory.SSoAWR<K,V>
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.NodeFactory.SSo<K,V>
-
- com.github.benmanes.caffeine.cache.NodeFactory.SSoA<K,V>
-
- com.github.benmanes.caffeine.cache.NodeFactory.SSoAW<K,V>
-
- com.github.benmanes.caffeine.cache.NodeFactory.SSoAWR<K,V>
-
- All Implemented Interfaces:
AccessOrderDeque.AccessOrder<Node<K,V>>
,Node<K,V>
,WriteOrderDeque.WriteOrder<Node<K,V>>
- Direct Known Subclasses:
NodeFactory.SSoAWRMS
,NodeFactory.SSoAWRMW
- Enclosing class:
- NodeFactory
static class NodeFactory.SSoAWR<K,V> extends NodeFactory.SSoAW<K,V>
-
-
Field Summary
-
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.SSoAW
WRITE_TIME_OFFSET
-
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.SSoA
ACCESS_TIME_OFFSET
-
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.SSo
KEY_OFFSET, VALUE_OFFSET
-
-
Constructor Summary
Constructors Constructor Description SSoAWR(java.lang.Object keyReference, V value, java.lang.ref.ReferenceQueue<V> valueReferenceQueue, int weight, long now)
SSoAWR(K key, java.lang.ref.ReferenceQueue<K> keyReferenceQueue, V value, java.lang.ref.ReferenceQueue<V> valueReferenceQueue, int weight, long now)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.SSoAW
getNextInWriteOrder, getPreviousInWriteOrder, getWriteTime, setNextInWriteOrder, setPreviousInWriteOrder, setWriteTime
-
Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.SSoA
getAccessTime, getNextInAccessOrder, getPreviousInAccessOrder, setAccessTime, setNextInAccessOrder, setPreviousInAccessOrder
-
Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.SSo
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
-
-
-
-
Method Detail
-
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.
-
-