Class FDAMW<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.Node<K,V>
com.github.benmanes.caffeine.cache.FD<K,V>
com.github.benmanes.caffeine.cache.FDA<K,V>
com.github.benmanes.caffeine.cache.FDAMW<K,V>
- All Implemented Interfaces:
AccessOrderDeque.AccessOrder<Node<K,,V>> NodeFactory<K,,V> WriteOrderDeque.WriteOrder<Node<K,V>>
WARNING: GENERATED CODE
A cache entry that provides the following features:
- MaximumWeight
- WeakKeys (inherited)
- SoftValues (inherited)
- ExpireAccess (inherited)
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) int(package private) intFields inherited from class com.github.benmanes.caffeine.cache.FDA
ACCESS_TIME_OFFSET, accessTime, nextInAccessOrder, previousInAccessOrderFields inherited from class com.github.benmanes.caffeine.cache.FD
value, VALUE_OFFSETFields inherited from interface com.github.benmanes.caffeine.cache.NodeFactory
DEAD_STRONG_KEY, DEAD_WEAK_KEY, RETIRED_STRONG_KEY, RETIRED_WEAK_KEY -
Constructor Summary
ConstructorsConstructorDescriptionFDAMW()FDAMW(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) FDAMW(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the weight of this entry from the policy's perspective.intReturns the queue that the entry's resides in (window, probation, or protected).intReturns the weight of this entry from the entry's perspective.newNode(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) Returns a node optimized for the specified features.newNode(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) Returns a node optimized for the specified features.voidsetPolicyWeight(int policyWeight) Sets the weight from the policy's perspective.voidsetQueueType(int queueType) Set queue that the entry resides in (window, probation, or protected).voidsetWeight(int weight) Sets the weight from the entry's perspective.Methods inherited from class com.github.benmanes.caffeine.cache.FDA
casVariableTime, getAccessTime, getNextInAccessOrder, getNextInVariableOrder, getPreviousInAccessOrder, getPreviousInVariableOrder, getVariableTime, setAccessTime, setNextInAccessOrder, setNextInVariableOrder, setPreviousInAccessOrder, setPreviousInVariableOrder, setVariableTimeMethods inherited from class com.github.benmanes.caffeine.cache.FD
containsValue, die, getKey, getKeyReference, getValue, getValueReference, isAlive, isDead, isRetired, newLookupKey, newReferenceKey, retire, setValue, softValuesMethods inherited from class com.github.benmanes.caffeine.cache.Node
casWriteTime, getNextInWriteOrder, getPreviousInWriteOrder, getWriteTime, inMainProbation, inMainProtected, inWindow, makeMainProbation, makeMainProtected, makeWindow, setNextInWriteOrder, setPreviousInWriteOrder, setWriteTime, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.benmanes.caffeine.cache.NodeFactory
weakValues
-
Field Details
-
queueType
int queueType -
weight
int weight -
policyWeight
int policyWeight
-
-
Constructor Details
-
FDAMW
FDAMW() -
FDAMW
FDAMW(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
FDAMW
FDAMW(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now)
-
-
Method Details
-
getQueueType
public int getQueueType()Description copied from class:NodeReturns the queue that the entry's resides in (window, probation, or protected).- Overrides:
getQueueTypein classNode<K,V>
-
setQueueType
public void setQueueType(int queueType) Description copied from class:NodeSet queue that the entry resides in (window, probation, or protected).- Overrides:
setQueueTypein classNode<K,V>
-
getWeight
public int getWeight()Description copied from class:NodeReturns the weight of this entry from the entry's perspective. -
setWeight
public void setWeight(int weight) Description copied from class:NodeSets the weight from the entry's perspective. -
getPolicyWeight
public int getPolicyWeight()Description copied from class:NodeReturns the weight of this entry from the policy's perspective.- Overrides:
getPolicyWeightin classNode<K,V>
-
setPolicyWeight
public void setPolicyWeight(int policyWeight) Description copied from class:NodeSets the weight from the policy's perspective.- Overrides:
setPolicyWeightin classNode<K,V>
-
newNode
public Node<K,V> newNode(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) Description copied from interface:NodeFactoryReturns a node optimized for the specified features. -
newNode
public Node<K,V> newNode(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) Description copied from interface:NodeFactoryReturns a node optimized for the specified features.
-