Class PDAMS<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.PDAMS<K,V>
-
- All Implemented Interfaces:
AccessOrderDeque.AccessOrder<Node<K,V>>
,NodeFactory<K,V>
,WriteOrderDeque.WriteOrder<Node<K,V>>
final class PDAMS<K,V> extends PDA<K,V>
WARNING: GENERATED CODE A cache entry that provides the following features:- MaximumSize
- StrongKeys (inherited)
- SoftValues (inherited)
- ExpireAccess (inherited)
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
queueType
-
Fields inherited from class com.github.benmanes.caffeine.cache.PDA
ACCESS_TIME_OFFSET, accessTime, nextInAccessOrder, previousInAccessOrder
-
Fields inherited from class com.github.benmanes.caffeine.cache.PD
value, VALUE_OFFSET
-
Fields inherited from interface com.github.benmanes.caffeine.cache.NodeFactory
DEAD_STRONG_KEY, DEAD_WEAK_KEY, RETIRED_STRONG_KEY, RETIRED_WEAK_KEY
-
-
Constructor Summary
Constructors Constructor Description PDAMS()
PDAMS(java.lang.Object keyReference, V value, java.lang.ref.ReferenceQueue<V> valueReferenceQueue, int weight, long now)
PDAMS(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 int
getQueueType()
Returns the queue that the entry's resides in (window, probation, or protected).Node<K,V>
newNode(java.lang.Object keyReference, V value, java.lang.ref.ReferenceQueue<V> valueReferenceQueue, int weight, long now)
Returns a node optimized for the specified features.Node<K,V>
newNode(K key, java.lang.ref.ReferenceQueue<K> keyReferenceQueue, V value, java.lang.ref.ReferenceQueue<V> valueReferenceQueue, int weight, long now)
Returns a node optimized for the specified features.void
setQueueType(int queueType)
Set queue that the entry resides in (window, probation, or protected).-
Methods inherited from class com.github.benmanes.caffeine.cache.PDA
casVariableTime, getAccessTime, getNextInAccessOrder, getNextInVariableOrder, getPreviousInAccessOrder, getPreviousInVariableOrder, getVariableTime, setAccessTime, setNextInAccessOrder, setNextInVariableOrder, setPreviousInAccessOrder, setPreviousInVariableOrder, setVariableTime
-
Methods inherited from class com.github.benmanes.caffeine.cache.PD
containsValue, die, getKey, getKeyReference, getValue, getValueReference, isAlive, isDead, isRetired, retire, setValue, softValues
-
Methods inherited from class com.github.benmanes.caffeine.cache.Node
casWriteTime, getNextInWriteOrder, getPolicyWeight, getPreviousInWriteOrder, getWeight, getWriteTime, inMainProbation, inMainProtected, inWindow, makeMainProbation, makeMainProtected, makeWindow, setNextInWriteOrder, setPolicyWeight, setPreviousInWriteOrder, setWeight, setWriteTime, 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.NodeFactory
newLookupKey, newReferenceKey, weakValues
-
-
-
-
Method Detail
-
getQueueType
public int getQueueType()
Description copied from class:Node
Returns the queue that the entry's resides in (window, probation, or protected).- Overrides:
getQueueType
in classNode<K,V>
-
setQueueType
public void setQueueType(int queueType)
Description copied from class:Node
Set queue that the entry resides in (window, probation, or protected).- Overrides:
setQueueType
in classNode<K,V>
-
newNode
public Node<K,V> newNode(K key, java.lang.ref.ReferenceQueue<K> keyReferenceQueue, V value, java.lang.ref.ReferenceQueue<V> valueReferenceQueue, int weight, long now)
Description copied from interface:NodeFactory
Returns a node optimized for the specified features.
-
-