Class SSLSMWA<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.SS<K,V>
-
- com.github.benmanes.caffeine.cache.SSL<K,V>
-
- com.github.benmanes.caffeine.cache.SSLS<K,V>
-
- com.github.benmanes.caffeine.cache.SSLSMW<K,V>
-
- com.github.benmanes.caffeine.cache.SSLSMWA<K,V>
-
- All Implemented Interfaces:
LocalCache<K,V>
,java.util.concurrent.ConcurrentMap<K,V>
,java.util.Map<K,V>
class SSLSMWA<K,V> extends SSLSMW<K,V>
WARNING: GENERATED CODE A cache that provides the following features:- ExpireAccess
- StrongKeys (inherited)
- StrongValues (inherited)
- Listening (inherited)
- Stats (inherited)
- MaximumWeight (inherited)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.benmanes.caffeine.cache.BoundedLocalCache
BoundedLocalCache.AddTask, BoundedLocalCache.BoundedLocalAsyncCache<K,V>, 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 (package private) long
expiresAfterAccessNanos
(package private) Expiry<K,V>
expiry
(package private) Pacer
pacer
(package private) Ticker
ticker
(package private) TimerWheel<K,V>
timerWheel
-
Fields inherited from class com.github.benmanes.caffeine.cache.SSLSMW
accessOrderProbationDeque, accessOrderProtectedDeque, accessOrderWindowDeque, adjustment, hitsInSample, mainProtectedMaximum, mainProtectedWeightedSize, maximum, missesInSample, previousSampleHitRate, sketch, stepSize, weightedSize, windowMaximum, windowWeightedSize
-
Fields inherited from class com.github.benmanes.caffeine.cache.SSLS
statsCounter
-
Fields inherited from class com.github.benmanes.caffeine.cache.SSL
removalListener
-
Fields inherited from class com.github.benmanes.caffeine.cache.BoundedLocalCache
accessPolicy, cacheLoader, data, drainBuffersTask, entrySet, evictionLock, executor, EXPIRE_WRITE_TOLERANCE, HILL_CLIMBER_RESTART_THRESHOLD, HILL_CLIMBER_STEP_DECAY_RATE, HILL_CLIMBER_STEP_PERCENT, isAsync, keySet, logger, MAXIMUM_CAPACITY, MAXIMUM_EXPIRY, NCPU, nodeFactory, PERCENT_MAIN, PERCENT_MAIN_PROTECTED, QUEUE_TRANSFER_THRESHOLD, readBuffer, values, weigher, WRITE_BUFFER_MAX, WRITE_BUFFER_MIN, WRITE_BUFFER_RETRIES, writeBuffer, writer
-
Fields inherited from class com.github.benmanes.caffeine.cache.BLCHeader.DrainStatusRef
DRAIN_STATUS_OFFSET, drainStatus, IDLE, PROCESSING_TO_IDLE, PROCESSING_TO_REQUIRED, REQUIRED
-
Fields inherited from class com.github.benmanes.caffeine.cache.BLCHeader.PadDrainStatus
p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015, p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031, p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047, p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063, p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079, p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095, p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ticker
expirationTicker()
Returns theTicker
used by this cache for expiration.protected boolean
expiresAfterAccess()
Returns if the cache expires entries after an access time threshold.protected long
expiresAfterAccessNanos()
Returns how long after the last access to an entry the map will retain that entry.protected boolean
expiresVariable()
Returns if the cache expires entries after a variable time threshold.protected Expiry<K,V>
expiry()
protected boolean
fastpath()
Returns if an access to an entry can skip notifying the eviction policy.Pacer
pacer()
Returns thePacer
used to schedule the maintenance task.protected void
setExpiresAfterAccessNanos(long expiresAfterAccessNanos)
protected TimerWheel<K,V>
timerWheel()
-
Methods inherited from class com.github.benmanes.caffeine.cache.SSLSMW
accessOrderProbationDeque, accessOrderProtectedDeque, accessOrderWindowDeque, adjustment, evicts, frequencySketch, hitsInSample, mainProtectedMaximum, mainProtectedWeightedSize, maximum, missesInSample, previousSampleHitRate, setAdjustment, setHitsInSample, setMainProtectedMaximum, setMainProtectedWeightedSize, setMaximum, setMissesInSample, setPreviousSampleHitRate, setStepSize, setWeightedSize, setWindowMaximum, setWindowWeightedSize, stepSize, weightedSize, windowMaximum, windowWeightedSize
-
Methods inherited from class com.github.benmanes.caffeine.cache.SSLS
isRecordingStats, statsCounter, statsTicker
-
Methods inherited from class com.github.benmanes.caffeine.cache.SSL
hasRemovalListener, removalListener
-
Methods inherited from class com.github.benmanes.caffeine.cache.BoundedLocalCache
admit, afterRead, afterWrite, cleanUp, clear, climb, collectKeys, collectValues, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, decreaseWindow, demoteFromMainProtected, determineAdjustment, doComputeIfAbsent, drainKeyReferences, drainReadBuffer, drainValueReferences, drainWriteBuffer, entrySet, estimatedSize, evictEntries, evictEntry, evictFromMain, evictFromWindow, evictionOrder, executor, expireAfterAccessEntries, expireAfterAccessEntries, expireAfterAccessOrder, expireAfterCreate, expireAfterRead, expireAfterUpdate, expireAfterWriteEntries, expireAfterWriteOrder, expireEntries, expiresAfterWrite, expiresAfterWriteNanos, expireVariableEntries, fixedSnapshot, get, getAllPresent, getIfPresent, getIfPresentQuietly, hasExpired, hasWriter, hasWriteTime, increaseWindow, isComputingAsync, isEmpty, isWeighted, keyReferenceQueue, keySet, maintenance, makeDead, makeSerializationProxy, merge, notifyRemoval, onAccess, performCleanUp, put, put, put, putIfAbsent, refreshAfterWrite, refreshAfterWriteNanos, refreshIfNeeded, remap, remove, remove, removeNode, reorder, reorderProbation, replace, replace, replaceAll, sampleCount, scheduleAfterWrite, scheduleDrainBuffers, setAccessTime, setExpiresAfterWriteNanos, setMaximumSize, setRefreshAfterWriteNanos, setSampleCount, setVariableTime, setWriteTime, size, skipReadBuffer, tryExpireAfterRead, valueReferenceQueue, values, variableSnapshot, 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
-
-
-
-
Method Detail
-
expirationTicker
public final Ticker 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.
-
expiresVariable
protected final boolean expiresVariable()
Description copied from class:BoundedLocalCache
Returns if the cache expires entries after a variable time threshold.- Overrides:
expiresVariable
in classBoundedLocalCache<K,V>
-
timerWheel
protected final TimerWheel<K,V> timerWheel()
- Overrides:
timerWheel
in classBoundedLocalCache<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
Returns 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>
-
pacer
public final Pacer pacer()
Description copied from class:BoundedLocalCache
Returns thePacer
used to schedule the maintenance task.- Overrides:
pacer
in classBoundedLocalCache<K,V>
-
-