Class LocalCacheFactory.WSLiSR<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.WS<K,V>
com.github.benmanes.caffeine.cache.LocalCacheFactory.WSLi<K,V>
com.github.benmanes.caffeine.cache.LocalCacheFactory.WSLiS<K,V>
com.github.benmanes.caffeine.cache.LocalCacheFactory.WSLiSR<K,V>
- All Implemented Interfaces:
LocalCache<K,
,V> ConcurrentMap<K,
,V> Map<K,
V>
- 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
FieldsModifier and TypeFieldDescriptionprivate long
private final Ticker
private final MpscGrowableArrayQueue<Runnable>
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 TypeMethodDescriptionprotected final boolean
If the page replacement policy buffers writes.final Ticker
Returns theTicker
used by this cache for expiration.protected final boolean
Returns if the cache refreshes entries after an write time threshold.protected final long
How long after the last write an entry becomes a candidate for refresh.protected final void
setRefreshAfterWriteNanos
(long refreshAfterWriteNanos) protected final MpscGrowableArrayQueue<Runnable>
Methods inherited from class com.github.benmanes.caffeine.cache.LocalCacheFactory.WSLiS
isRecordingStats, statsCounter, statsTicker
Methods inherited from class com.github.benmanes.caffeine.cache.LocalCacheFactory.WSLi
hasRemovalListener, removalListener
Methods inherited from class com.github.benmanes.caffeine.cache.LocalCacheFactory.WS
collectKeys, keyReferenceQueue
Methods inherited from class com.github.benmanes.caffeine.cache.BoundedLocalCache
accessOrderEdenDeque, accessOrderProbationDeque, accessOrderProtectedDeque, adjustedWeightedSize, admit, afterRead, afterWrite, ceilingPowerOfTwo, cleanUp, clear, collectValues, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, doComputeIfAbsent, drainKeyReferences, drainReadBuffer, drainValueReferences, drainWriteBuffer, edenMaximum, edenWeightedSize, entrySet, estimatedSize, evictEntries, evictEntry, evictFromEden, evictFromMain, evictionOrder, evicts, executor, expireAfterAccessEntries, expireAfterAccessEntries, expireAfterAcessOrder, expireAfterWriteEntries, expireAfterWriteOrder, expireEntries, expiresAfterAccess, expiresAfterAccessNanos, expiresAfterWrite, expiresAfterWriteNanos, fastpath, frequencySketch, get, getAllPresent, getIfPresent, getIfPresentQuietly, hasExpired, hasWriter, hasWriteTime, isComputingAsync, isEmpty, isWeighted, keySet, lazySetEdenMaximum, lazySetEdenWeightedSize, lazySetMainProtectedMaximum, lazySetMainProtectedWeightedSize, lazySetMaximum, lazySetWeightedSize, mainProtectedMaximum, mainProtectedWeightedSize, maintenance, makeDead, makeSerializationProxy, maximum, merge, notifyRemoval, onAccess, performCleanUp, put, put, putFast, putIfAbsent, putSlow, refreshIfNeeded, remap, remove, remove, removeNode, removeNodes, removeNoWriter, removeWithWriter, reorder, reorderProbation, replace, replace, replaceAll, scheduleAfterWrite, scheduleDrainBuffers, setExpiresAfterAccessNanos, setExpiresAfterWriteNanos, setMaximum, size, skipReadBuffer, snapshot, valueReferenceQueue, values, weightedSize, 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
-
refreshAfterWriteNanos
private volatile long refreshAfterWriteNanos -
writeBuffer
-
-
Constructor Details
-
WSLiSR
-
-
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>
-
refreshAfterWrite
protected final boolean refreshAfterWrite()Description copied from class:BoundedLocalCache
Returns if the cache refreshes entries after an write time threshold.- Overrides:
refreshAfterWrite
in classBoundedLocalCache<K,
V>
-
refreshAfterWriteNanos
protected final long refreshAfterWriteNanos()Description copied from class:BoundedLocalCache
How long after the last write an entry becomes a candidate for refresh.- Overrides:
refreshAfterWriteNanos
in classBoundedLocalCache<K,
V>
-
setRefreshAfterWriteNanos
protected final void setRefreshAfterWriteNanos(long refreshAfterWriteNanos) - Overrides:
setRefreshAfterWriteNanos
in classBoundedLocalCache<K,
V>
-
writeBuffer
- Overrides:
writeBuffer
in classBoundedLocalCache<K,
V>
-
buffersWrites
protected final boolean buffersWrites()Description copied from class:BoundedLocalCache
If the page replacement policy buffers writes.- Overrides:
buffersWrites
in classBoundedLocalCache<K,
V>
-