Class LocalCacheFactory.SSMWA<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
com.github.benmanes.caffeine.cache.BLCHeader.PadDrainStatus<K,V>
com.github.benmanes.caffeine.cache.BLCHeader.DrainStatusRef<K,V>
com.github.benmanes.caffeine.cache.BoundedLocalCache<K,V>
com.github.benmanes.caffeine.cache.LocalCacheFactory.SS<K,V>
com.github.benmanes.caffeine.cache.LocalCacheFactory.SSMW<K,V>
com.github.benmanes.caffeine.cache.LocalCacheFactory.SSMWA<K,V>
- All Implemented Interfaces:
LocalCache<K,
,V> ConcurrentMap<K,
,V> Map<K,
V>
- Direct Known Subclasses:
LocalCacheFactory.SSMWAR
,LocalCacheFactory.SSMWAW
- Enclosing class:
- LocalCacheFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.benmanes.caffeine.cache.BoundedLocalCache
BoundedLocalCache.AddTask, BoundedLocalCache.BoundedLocalAsyncLoadingCache<K,
V>, BoundedLocalCache.BoundedLocalLoadingCache<K, V>, BoundedLocalCache.BoundedLocalManualCache<K, V>, BoundedLocalCache.BoundedPolicy<K, V>, BoundedLocalCache.EntryIterator<K, V>, BoundedLocalCache.EntrySetView<K, V>, BoundedLocalCache.EntrySpliterator<K, V>, BoundedLocalCache.KeyIterator<K, V>, BoundedLocalCache.KeySetView<K, V>, BoundedLocalCache.KeySpliterator<K, V>, BoundedLocalCache.PerformCleanupTask, BoundedLocalCache.RemovalTask, BoundedLocalCache.UpdateTask, BoundedLocalCache.ValueIterator<K, V>, BoundedLocalCache.ValueSpliterator<K, V>, BoundedLocalCache.ValuesView<K, V> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsFields inherited from class com.github.benmanes.caffeine.cache.LocalCacheFactory.SSMW
EDEN_MAXIMUM_OFFSET, EDEN_WEIGHTED_SIZE_OFFSET, MAIN_PROTECTED_MAXIMUM_OFFSET, MAIN_PROTECTED_WEIGHTED_SIZE_OFFSET, MAXIMUM_OFFSET, WEIGHTED_SIZE_OFFSET
Fields inherited from class com.github.benmanes.caffeine.cache.BoundedLocalCache
accessPolicy, cacheLoader, data, drainBuffersTask, entrySet, evictionLock, executor, EXPIRE_WRITE_TOLERANCE, isAsync, keySet, logger, MAXIMUM_CAPACITY, NCPU, nodeFactory, PERCENT_MAIN, PERCENT_MAIN_PROTECTED, readBuffer, values, weigher, WRITE_BUFFER_MAX, WRITE_BUFFER_MIN, WRITE_BUFFER_RETRIES, writer
Fields inherited from class com.github.benmanes.caffeine.cache.BLCHeader.DrainStatusRef
DRAIN_STATUS_OFFSET, drainStatus, IDLE, PROCESSING_TO_IDLE, PROCESSING_TO_REQUIRED, REQUIRED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Ticker
Returns theTicker
used by this cache for expiration.protected final boolean
Returns if the cache expires entries after an access time threshold.protected final long
How long after the last access to an entry the map will retain that entry.protected boolean
fastpath()
Returns if an access to an entry can skip notifying the eviction policy.protected final void
setExpiresAfterAccessNanos
(long expiresAfterAccessNanos) Methods inherited from class com.github.benmanes.caffeine.cache.LocalCacheFactory.SSMW
accessOrderEdenDeque, accessOrderProbationDeque, accessOrderProtectedDeque, buffersWrites, edenMaximum, edenWeightedSize, evicts, frequencySketch, lazySetEdenMaximum, lazySetEdenWeightedSize, lazySetMainProtectedMaximum, lazySetMainProtectedWeightedSize, lazySetMaximum, lazySetWeightedSize, mainProtectedMaximum, mainProtectedWeightedSize, maximum, weightedSize, writeBuffer
Methods inherited from class com.github.benmanes.caffeine.cache.BoundedLocalCache
adjustedWeightedSize, admit, afterRead, afterWrite, ceilingPowerOfTwo, cleanUp, clear, collectKeys, collectValues, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, doComputeIfAbsent, drainKeyReferences, drainReadBuffer, drainValueReferences, drainWriteBuffer, entrySet, estimatedSize, evictEntries, evictEntry, evictFromEden, evictFromMain, evictionOrder, executor, expireAfterAccessEntries, expireAfterAccessEntries, expireAfterAcessOrder, expireAfterWriteEntries, expireAfterWriteOrder, expireEntries, expiresAfterWrite, expiresAfterWriteNanos, get, getAllPresent, getIfPresent, getIfPresentQuietly, hasExpired, hasRemovalListener, hasWriter, hasWriteTime, isComputingAsync, isEmpty, isRecordingStats, isWeighted, keyReferenceQueue, keySet, maintenance, makeDead, makeSerializationProxy, merge, notifyRemoval, onAccess, performCleanUp, put, put, putFast, putIfAbsent, putSlow, refreshAfterWrite, refreshAfterWriteNanos, refreshIfNeeded, remap, removalListener, remove, remove, removeNode, removeNodes, removeNoWriter, removeWithWriter, reorder, reorderProbation, replace, replace, replaceAll, scheduleAfterWrite, scheduleDrainBuffers, setExpiresAfterWriteNanos, setMaximum, setRefreshAfterWriteNanos, size, skipReadBuffer, snapshot, statsCounter, statsTicker, valueReferenceQueue, values, writeOrderDeque
Methods inherited from class com.github.benmanes.caffeine.cache.BLCHeader.DrainStatusRef
casDrainStatus, drainStatus, lazySetDrainStatus, shouldDrainBuffers
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.ConcurrentMap
forEach, getOrDefault
Methods inherited from interface com.github.benmanes.caffeine.cache.LocalCache
compute, computeIfAbsent, invalidateAll, statsAware, statsAware, statsAware
-
Field Details
-
ticker
-
expiresAfterAccessNanos
private volatile long expiresAfterAccessNanos
-
-
Constructor Details
-
SSMWA
-
-
Method Details
-
expirationTicker
Description copied from interface:LocalCache
Returns theTicker
used by this cache for expiration.- Specified by:
expirationTicker
in interfaceLocalCache<K,
V> - Overrides:
expirationTicker
in classBoundedLocalCache<K,
V>
-
fastpath
protected boolean fastpath()Description copied from class:BoundedLocalCache
Returns if an access to an entry can skip notifying the eviction policy.- Overrides:
fastpath
in classLocalCacheFactory.SSMW<K,
V>
-
expiresAfterAccess
protected final boolean expiresAfterAccess()Description copied from class:BoundedLocalCache
Returns if the cache expires entries after an access time threshold.- Overrides:
expiresAfterAccess
in classBoundedLocalCache<K,
V>
-
expiresAfterAccessNanos
protected final long expiresAfterAccessNanos()Description copied from class:BoundedLocalCache
How long after the last access to an entry the map will retain that entry.- Overrides:
expiresAfterAccessNanos
in classBoundedLocalCache<K,
V>
-
setExpiresAfterAccessNanos
protected final void setExpiresAfterAccessNanos(long expiresAfterAccessNanos) - Overrides:
setExpiresAfterAccessNanos
in classBoundedLocalCache<K,
V>
-