Class FDAWRMS<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.FDAW<K,V>
com.github.benmanes.caffeine.cache.FDAWR<K,V>
com.github.benmanes.caffeine.cache.FDAWRMS<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
- WeakKeys (inherited)
- SoftValues (inherited)
- ExpireAccess (inherited)
- ExpireWrite (inherited)
- RefreshWrite (inherited)
-
Field Summary
FieldsFields inherited from class com.github.benmanes.caffeine.cache.FDAW
nextInWriteOrder, previousInWriteOrder, WRITE_TIME_OFFSET, writeTime
Fields inherited from class com.github.benmanes.caffeine.cache.FDA
ACCESS_TIME_OFFSET, accessTime, nextInAccessOrder, previousInAccessOrder
Fields inherited from class com.github.benmanes.caffeine.cache.FD
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
ConstructorsConstructorDescriptionFDAWRMS()
FDAWRMS
(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) FDAWRMS
(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns 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.void
setQueueType
(int queueType) Set queue that the entry resides in (window, probation, or protected).Methods inherited from class com.github.benmanes.caffeine.cache.FDAWR
casVariableTime, casWriteTime, getNextInVariableOrder, getPreviousInVariableOrder, getVariableTime, setNextInVariableOrder, setPreviousInVariableOrder, setVariableTime
Methods inherited from class com.github.benmanes.caffeine.cache.FDAW
getNextInWriteOrder, getPreviousInWriteOrder, getWriteTime, setNextInWriteOrder, setPreviousInWriteOrder, setWriteTime
Methods inherited from class com.github.benmanes.caffeine.cache.FDA
getAccessTime, getNextInAccessOrder, getPreviousInAccessOrder, setAccessTime, setNextInAccessOrder, setPreviousInAccessOrder
Methods inherited from class com.github.benmanes.caffeine.cache.FD
containsValue, die, getKey, getKeyReference, getValue, getValueReference, isAlive, isDead, isRetired, newLookupKey, newReferenceKey, retire, setValue, softValues
Methods inherited from class com.github.benmanes.caffeine.cache.Node
getPolicyWeight, getWeight, inMainProbation, inMainProtected, inWindow, makeMainProbation, makeMainProtected, makeWindow, setPolicyWeight, setWeight, 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
weakValues
-
Field Details
-
queueType
int queueType
-
-
Constructor Details
-
FDAWRMS
FDAWRMS() -
FDAWRMS
FDAWRMS(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) -
FDAWRMS
FDAWRMS(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now)
-
-
Method Details
-
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, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now) Description copied from interface:NodeFactory
Returns 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:NodeFactory
Returns a node optimized for the specified features.
-