Class NodeFactory.WSoARMW<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.NodeFactory.WSo<K,V>
com.github.benmanes.caffeine.cache.NodeFactory.WSoA<K,V>
com.github.benmanes.caffeine.cache.NodeFactory.WSoAR<K,V>
com.github.benmanes.caffeine.cache.NodeFactory.WSoARMW<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
private int
private int
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WSoAR
WRITE_TIME_OFFSET
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WSoA
ACCESS_TIME_OFFSET
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WSo
KEY_OFFSET, VALUE_OFFSET
-
Constructor Summary
ConstructorsConstructorDescriptionWSoARMW
(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) WSoARMW
(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Returns the weight of this entry from the policy's perspective.final int
Returns the queue that the entry's resides in (eden, probation, or protected).final int
Returns the weight of this entry from the entry's perspective.final void
setPolicyWeight
(int policyWeight) Sets the weight from the policy's perspective.final void
setQueueType
(int queueType) Set queue that the entry resides in (eden, probation, or protected).final void
setWeight
(int weight) Sets the weight from the entry's perspective.Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WSoAR
casWriteTime, getWriteTime, setWriteTime
Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WSoA
getAccessTime, getNextInAccessOrder, getPreviousInAccessOrder, setAccessTime, setNextInAccessOrder, setPreviousInAccessOrder
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
getNextInWriteOrder, getPreviousInWriteOrder, inEden, inMainProbation, inMainProtected, makeMainProbation, makeMainProtected, setNextInWriteOrder, setPreviousInWriteOrder
-
Field Details
-
queueType
private int queueType -
weight
private int weight -
policyWeight
private int policyWeight
-
-
Constructor Details
-
WSoARMW
WSoARMW(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
WSoARMW
WSoARMW(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). -
getWeight
public final int getWeight()Description copied from interface:Node
Returns the weight of this entry from the entry's perspective. -
setWeight
public final void setWeight(int weight) Description copied from interface:Node
Sets the weight from the entry's perspective. -
getPolicyWeight
public final int getPolicyWeight()Description copied from interface:Node
Returns the weight of this entry from the policy's perspective. -
setPolicyWeight
public final void setPolicyWeight(int policyWeight) Description copied from interface:Node
Sets the weight from the policy's perspective.
-