Class PDARMS<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.Node<K,V>
com.github.benmanes.caffeine.cache.PD<K,V>
com.github.benmanes.caffeine.cache.PDA<K,V>
com.github.benmanes.caffeine.cache.PDAR<K,V>
com.github.benmanes.caffeine.cache.PDARMS<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:
- MaximumSize
- StrongKeys (inherited)
- SoftValues (inherited)
- ExpireAccess (inherited)
- RefreshWrite (inherited)
-
Field Summary
FieldsFields inherited from class PDAR
WRITE_TIME_OFFSET, writeTimeFields inherited from class PDA
ACCESS_TIME_OFFSET, accessTime, nextInAccessOrder, previousInAccessOrderFields inherited from class PD
value, VALUE_OFFSETFields inherited from interface NodeFactory
DEAD_STRONG_KEY, DEAD_WEAK_KEY, RETIRED_STRONG_KEY, RETIRED_WEAK_KEY -
Constructor Summary
ConstructorsConstructorDescriptionPDARMS()PDARMS(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) PDARMS(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the queue that the entry's resides in (window, probation, or protected).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.voidsetQueueType(int queueType) Set queue that the entry resides in (window, probation, or protected).Methods inherited from class PDAR
casWriteTime, getWriteTime, setWriteTimeMethods inherited from class PDA
casVariableTime, getAccessTime, getNextInAccessOrder, getNextInVariableOrder, getPreviousInAccessOrder, getPreviousInVariableOrder, getVariableTime, setAccessTime, setNextInAccessOrder, setNextInVariableOrder, setPreviousInAccessOrder, setPreviousInVariableOrder, setVariableTimeMethods inherited from class PD
containsValue, die, getKey, getKeyReference, getValue, getValueReference, isAlive, isDead, isRetired, retire, setValue, softValuesMethods inherited from class Node
getNextInWriteOrder, getPolicyWeight, getPreviousInWriteOrder, getWeight, inMainProbation, inMainProtected, inWindow, makeMainProbation, makeMainProtected, makeWindow, setNextInWriteOrder, setPolicyWeight, setPreviousInWriteOrder, setWeight, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface NodeFactory
newLookupKey, newReferenceKey, weakValues
-
Field Details
-
queueType
int queueType
-
-
Constructor Details
-
PDARMS
PDARMS() -
PDARMS
PDARMS(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
PDARMS
PDARMS(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>
-
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.
-