Class PSAWMS<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.Node<K,V>
com.github.benmanes.caffeine.cache.PS<K,V>
com.github.benmanes.caffeine.cache.PSA<K,V>
com.github.benmanes.caffeine.cache.PSAW<K,V>
com.github.benmanes.caffeine.cache.PSAWMS<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)
- StrongValues (inherited)
- ExpireAccess (inherited)
- ExpireWrite (inherited)
-
Field Summary
FieldsFields inherited from class com.github.benmanes.caffeine.cache.PSAW
nextInWriteOrder, previousInWriteOrder, WRITE_TIME_OFFSET, writeTimeFields inherited from class com.github.benmanes.caffeine.cache.PSA
ACCESS_TIME_OFFSET, accessTime, nextInAccessOrder, previousInAccessOrderFields inherited from class com.github.benmanes.caffeine.cache.PS
key, KEY_OFFSET, 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
ConstructorsConstructorDescriptionPSAWMS()PSAWMS(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) PSAWMS(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 com.github.benmanes.caffeine.cache.PSAW
casVariableTime, getNextInVariableOrder, getNextInWriteOrder, getPreviousInVariableOrder, getPreviousInWriteOrder, getVariableTime, getWriteTime, setNextInVariableOrder, setNextInWriteOrder, setPreviousInVariableOrder, setPreviousInWriteOrder, setVariableTime, setWriteTimeMethods inherited from class com.github.benmanes.caffeine.cache.PSA
getAccessTime, getNextInAccessOrder, getPreviousInAccessOrder, setAccessTime, setNextInAccessOrder, setPreviousInAccessOrderMethods inherited from class com.github.benmanes.caffeine.cache.PS
containsValue, die, getKey, getKeyReference, getValue, getValueReference, isAlive, isDead, isRetired, retire, setValueMethods inherited from class com.github.benmanes.caffeine.cache.Node
casWriteTime, getPolicyWeight, getWeight, inMainProbation, inMainProtected, inWindow, makeMainProbation, makeMainProtected, makeWindow, setPolicyWeight, setWeight, 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
newLookupKey, newReferenceKey, softValues, weakValues
-
Field Details
-
queueType
int queueType
-
-
Constructor Details
-
PSAWMS
PSAWMS() -
PSAWMS
PSAWMS(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
PSAWMS
PSAWMS(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.
-