Class LocalCacheFactory.SSLiSA<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.SSLi<K,V>
-
- com.github.benmanes.caffeine.cache.LocalCacheFactory.SSLiS<K,V>
-
- com.github.benmanes.caffeine.cache.LocalCacheFactory.SSLiSA<K,V>
-
- All Implemented Interfaces:
LocalCache<K,V>,java.util.concurrent.ConcurrentMap<K,V>,java.util.Map<K,V>
- Direct Known Subclasses:
LocalCacheFactory.SSLiSAR,LocalCacheFactory.SSLiSAW
- Enclosing class:
- LocalCacheFactory
static class LocalCacheFactory.SSLiSA<K,V> extends LocalCacheFactory.SSLiS<K,V>
-
-
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>
-
-
Field Summary
Fields Modifier and Type Field Description private AccessOrderDeque<Node<K,V>>accessOrderEdenDequeprivate longexpiresAfterAccessNanosprivate Tickertickerprivate MpscGrowableArrayQueue<java.lang.Runnable>writeBuffer-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AccessOrderDeque<Node<K,V>>accessOrderEdenDeque()protected booleanbuffersWrites()If the page replacement policy buffers writes.TickerexpirationTicker()Returns theTickerused by this cache for expiration.protected booleanexpiresAfterAccess()Returns if the cache expires entries after an access time threshold.protected longexpiresAfterAccessNanos()How long after the last access to an entry the map will retain that entry.protected voidsetExpiresAfterAccessNanos(long expiresAfterAccessNanos)protected MpscGrowableArrayQueue<java.lang.Runnable>writeBuffer()-
Methods inherited from class com.github.benmanes.caffeine.cache.LocalCacheFactory.SSLiS
isRecordingStats, statsCounter, statsTicker
-
Methods inherited from class com.github.benmanes.caffeine.cache.LocalCacheFactory.SSLi
hasRemovalListener, removalListener
-
Methods inherited from class com.github.benmanes.caffeine.cache.BoundedLocalCache
accessOrderProbationDeque, accessOrderProtectedDeque, adjustedWeightedSize, admit, afterRead, afterWrite, ceilingPowerOfTwo, cleanUp, clear, collectKeys, 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, expiresAfterWrite, expiresAfterWriteNanos, fastpath, frequencySketch, get, getAllPresent, getIfPresent, getIfPresentQuietly, hasExpired, hasWriter, hasWriteTime, isComputingAsync, isEmpty, isWeighted, keyReferenceQueue, keySet, lazySetEdenMaximum, lazySetEdenWeightedSize, lazySetMainProtectedMaximum, lazySetMainProtectedWeightedSize, lazySetMaximum, lazySetWeightedSize, mainProtectedMaximum, mainProtectedWeightedSize, maintenance, makeDead, makeSerializationProxy, maximum, merge, notifyRemoval, onAccess, performCleanUp, put, put, putFast, putIfAbsent, putSlow, refreshAfterWrite, refreshAfterWriteNanos, refreshIfNeeded, remap, remove, remove, removeNode, removeNodes, removeNoWriter, removeWithWriter, reorder, reorderProbation, replace, replace, replaceAll, scheduleAfterWrite, scheduleDrainBuffers, setExpiresAfterWriteNanos, setMaximum, setRefreshAfterWriteNanos, 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 com.github.benmanes.caffeine.cache.LocalCache
compute, computeIfAbsent, invalidateAll, statsAware, statsAware, statsAware
-
-
-
-
Field Detail
-
ticker
private final Ticker ticker
-
accessOrderEdenDeque
private final AccessOrderDeque<Node<K,V>> accessOrderEdenDeque
-
expiresAfterAccessNanos
private volatile long expiresAfterAccessNanos
-
writeBuffer
private final MpscGrowableArrayQueue<java.lang.Runnable> writeBuffer
-
-
Method Detail
-
expirationTicker
public final Ticker expirationTicker()
Description copied from interface:LocalCacheReturns theTickerused by this cache for expiration.- Specified by:
expirationTickerin interfaceLocalCache<K,V>- Overrides:
expirationTickerin classBoundedLocalCache<K,V>
-
accessOrderEdenDeque
protected final AccessOrderDeque<Node<K,V>> accessOrderEdenDeque()
- Overrides:
accessOrderEdenDequein classBoundedLocalCache<K,V>
-
expiresAfterAccess
protected final boolean expiresAfterAccess()
Description copied from class:BoundedLocalCacheReturns if the cache expires entries after an access time threshold.- Overrides:
expiresAfterAccessin classBoundedLocalCache<K,V>
-
expiresAfterAccessNanos
protected final long expiresAfterAccessNanos()
Description copied from class:BoundedLocalCacheHow long after the last access to an entry the map will retain that entry.- Overrides:
expiresAfterAccessNanosin classBoundedLocalCache<K,V>
-
setExpiresAfterAccessNanos
protected final void setExpiresAfterAccessNanos(long expiresAfterAccessNanos)
- Overrides:
setExpiresAfterAccessNanosin classBoundedLocalCache<K,V>
-
writeBuffer
protected final MpscGrowableArrayQueue<java.lang.Runnable> writeBuffer()
- Overrides:
writeBufferin classBoundedLocalCache<K,V>
-
buffersWrites
protected final boolean buffersWrites()
Description copied from class:BoundedLocalCacheIf the page replacement policy buffers writes.- Overrides:
buffersWritesin classBoundedLocalCache<K,V>
-
-