Class NodeFactory.WStAWRMW<K,V>
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.NodeFactory.WSt<K,V>
-
- com.github.benmanes.caffeine.cache.NodeFactory.WStA<K,V>
-
- com.github.benmanes.caffeine.cache.NodeFactory.WStAW<K,V>
-
- com.github.benmanes.caffeine.cache.NodeFactory.WStAWR<K,V>
-
- com.github.benmanes.caffeine.cache.NodeFactory.WStAWRMW<K,V>
-
- All Implemented Interfaces:
AccessOrderDeque.AccessOrder<Node<K,V>>,Node<K,V>,WriteOrderDeque.WriteOrder<Node<K,V>>
- Enclosing class:
- NodeFactory
static final class NodeFactory.WStAWRMW<K,V> extends NodeFactory.WStAWR<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description private intpolicyWeightprivate intqueueTypeprivate intweight-
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WStAW
WRITE_TIME_OFFSET
-
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WStA
ACCESS_TIME_OFFSET
-
Fields inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WSt
KEY_OFFSET, VALUE_OFFSET
-
-
Constructor Summary
Constructors Constructor Description WStAWRMW(java.lang.Object keyReference, V value, java.lang.ref.ReferenceQueue<V> valueReferenceQueue, int weight, long now)WStAWRMW(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 intgetPolicyWeight()Returns the weight of this entry from the policy's perspective.intgetQueueType()Returns the queue that the entry's resides in (eden, probation, or protected).intgetWeight()Returns the weight of this entry from the entry's perspective.voidsetPolicyWeight(int policyWeight)Sets the weight from the policy's perspective.voidsetQueueType(int queueType)Set queue that the entry resides in (eden, probation, or protected).voidsetWeight(int weight)Sets the weight from the entry's perspective.-
Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WStAWR
casWriteTime
-
Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WStAW
getNextInWriteOrder, getPreviousInWriteOrder, getWriteTime, setNextInWriteOrder, setPreviousInWriteOrder, setWriteTime
-
Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WStA
getAccessTime, getNextInAccessOrder, getPreviousInAccessOrder, setAccessTime, setNextInAccessOrder, setPreviousInAccessOrder
-
Methods inherited from class com.github.benmanes.caffeine.cache.NodeFactory.WSt
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
inEden, inMainProbation, inMainProtected, makeMainProbation, makeMainProtected
-
-
-
-
Method Detail
-
getQueueType
public final int getQueueType()
Description copied from interface:NodeReturns the queue that the entry's resides in (eden, probation, or protected).
-
setQueueType
public final void setQueueType(int queueType)
Description copied from interface:NodeSet queue that the entry resides in (eden, probation, or protected).
-
getWeight
public final int getWeight()
Description copied from interface:NodeReturns the weight of this entry from the entry's perspective.
-
setWeight
public final void setWeight(int weight)
Description copied from interface:NodeSets the weight from the entry's perspective.
-
getPolicyWeight
public final int getPolicyWeight()
Description copied from interface:NodeReturns the weight of this entry from the policy's perspective.
-
setPolicyWeight
public final void setPolicyWeight(int policyWeight)
Description copied from interface:NodeSets the weight from the policy's perspective.
-
-