Class NodeFactory.WSoRMS<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.NodeFactory.WSo<K,V>
com.github.benmanes.caffeine.cache.NodeFactory.WSoR<K,V>
com.github.benmanes.caffeine.cache.NodeFactory.WSoRMS<K,V>
- All Implemented Interfaces:
AccessOrderDeque.AccessOrder<Node<K,
,V>> Node<K,
,V> WriteOrderDeque.WriteOrder<Node<K,
V>>
- Enclosing class:
- NodeFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WSoR
WRITE_TIME_OFFSET
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WSo
KEY_OFFSET, VALUE_OFFSET
-
Constructor Summary
ConstructorsConstructorDescriptionWSoRMS
(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) WSoRMS
(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the next element or null if either the element is unlinked or the last element on the deque.Retrieves the previous element or null if either the element is unlinked or the first element on the deque.final int
Returns the queue that the entry's resides in (eden, probation, or protected).final void
setNextInAccessOrder
(Node<K, V> nextInAccessOrder) Sets the next element or null if there is no link.final void
setPreviousInAccessOrder
(Node<K, V> previousInAccessOrder) Sets the previous element or null if there is no link.final void
setQueueType
(int queueType) Set queue that the entry resides in (eden, probation, or protected).Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WSoR
casWriteTime, getWriteTime, setWriteTime
Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WSo
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, getNextInWriteOrder, getPolicyWeight, getPreviousInWriteOrder, getWeight, inEden, inMainProbation, inMainProtected, makeMainProbation, makeMainProtected, setAccessTime, setNextInWriteOrder, setPolicyWeight, setPreviousInWriteOrder, setWeight
-
Field Details
-
queueType
private int queueType -
previousInAccessOrder
-
nextInAccessOrder
-
-
Constructor Details
-
WSoRMS
WSoRMS(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
WSoRMS
WSoRMS(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now)
-
-
Method Details
-
getQueueType
public final int getQueueType()Description copied from interface:Node
Returns the queue that the entry's resides in (eden, probation, or protected). -
setQueueType
public final void setQueueType(int queueType) Description copied from interface:Node
Set queue that the entry resides in (eden, probation, or protected). -
getPreviousInAccessOrder
Description copied from interface:AccessOrderDeque.AccessOrder
Retrieves the previous element or null if either the element is unlinked or the first element on the deque. -
setPreviousInAccessOrder
Description copied from interface:AccessOrderDeque.AccessOrder
Sets the previous element or null if there is no link. -
getNextInAccessOrder
Description copied from interface:AccessOrderDeque.AccessOrder
Retrieves the next element or null if either the element is unlinked or the last element on the deque. -
setNextInAccessOrder
Description copied from interface:AccessOrderDeque.AccessOrder
Sets the next element or null if there is no link.
-