Class SILMW<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.SI<K,V>
-
- com.github.benmanes.caffeine.cache.SIL<K,V>
-
- com.github.benmanes.caffeine.cache.SILMW<K,V>
-
- All Implemented Interfaces:
LocalCache<K,V>
,java.util.concurrent.ConcurrentMap<K,V>
,java.util.Map<K,V>
class SILMW<K,V> extends SIL<K,V>
WARNING: GENERATED CODE A cache that provides the following features:- MaximumWeight
- StrongKeys (inherited)
- InfirmValues (inherited)
- Listening (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) AccessOrderDeque<Node<K,V>>
accessOrderProbationDeque
(package private) AccessOrderDeque<Node<K,V>>
accessOrderProtectedDeque
(package private) AccessOrderDeque<Node<K,V>>
accessOrderWindowDeque
(package private) long
adjustment
(package private) int
hitsInSample
(package private) long
mainProtectedMaximum
(package private) long
mainProtectedWeightedSize
(package private) long
maximum
(package private) int
missesInSample
(package private) double
previousSampleHitRate
(package private) FrequencySketch<K>
sketch
(package private) double
stepSize
(package private) long
weightedSize
(package private) long
windowMaximum
(package private) long
windowWeightedSize
-
Fields inherited from class com.github.benmanes.caffeine.cache.SIL
removalListener
-
Fields inherited from class com.github.benmanes.caffeine.cache.SI
valueReferenceQueue
-
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 protected AccessOrderDeque<Node<K,V>>
accessOrderProbationDeque()
protected AccessOrderDeque<Node<K,V>>
accessOrderProtectedDeque()
protected AccessOrderDeque<Node<K,V>>
accessOrderWindowDeque()
protected long
adjustment()
protected boolean
evicts()
Returns if the cache evicts entries due to a maximum size or weight threshold.protected FrequencySketch<K>
frequencySketch()
protected int
hitsInSample()
protected long
mainProtectedMaximum()
Returns the maximum weighted size of the main's protected space.protected long
mainProtectedWeightedSize()
Returns the uncorrected combined weight of the values in the main's protected space.protected long
maximum()
Returns the maximum weighted size.protected int
missesInSample()
protected double
previousSampleHitRate()
protected void
setAdjustment(long adjustment)
protected void
setHitsInSample(int hitsInSample)
protected void
setMainProtectedMaximum(long mainProtectedMaximum)
protected void
setMainProtectedWeightedSize(long mainProtectedWeightedSize)
protected void
setMaximum(long maximum)
protected void
setMissesInSample(int missesInSample)
protected void
setPreviousSampleHitRate(double previousSampleHitRate)
protected void
setStepSize(double stepSize)
protected void
setWeightedSize(long weightedSize)
protected void
setWindowMaximum(long windowMaximum)
protected void
setWindowWeightedSize(long windowWeightedSize)
protected double
stepSize()
protected long
weightedSize()
Returns the combined weight of the values in the cache (may be negative).protected long
windowMaximum()
Returns the maximum weighted size of the window space.protected long
windowWeightedSize()
Returns the uncorrected combined weight of the values in the window space.-
Methods inherited from class com.github.benmanes.caffeine.cache.SIL
hasRemovalListener, removalListener
-
Methods inherited from class com.github.benmanes.caffeine.cache.SI
collectValues, valueReferenceQueue
-
Methods inherited from class com.github.benmanes.caffeine.cache.BoundedLocalCache
admit, afterRead, afterWrite, cleanUp, clear, climb, collectKeys, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, decreaseWindow, demoteFromMainProtected, determineAdjustment, doComputeIfAbsent, drainKeyReferences, drainReadBuffer, drainValueReferences, drainWriteBuffer, entrySet, estimatedSize, evictEntries, evictEntry, evictFromMain, evictFromWindow, evictionOrder, executor, expirationTicker, expireAfterAccessEntries, expireAfterAccessEntries, expireAfterAccessOrder, expireAfterCreate, expireAfterRead, expireAfterUpdate, expireAfterWriteEntries, expireAfterWriteOrder, expireEntries, expiresAfterAccess, expiresAfterAccessNanos, expiresAfterWrite, expiresAfterWriteNanos, expiresVariable, expireVariableEntries, expiry, fastpath, fixedSnapshot, get, getAllPresent, getIfPresent, getIfPresentQuietly, hasExpired, hasWriter, hasWriteTime, increaseWindow, isComputingAsync, isEmpty, isRecordingStats, isWeighted, keyReferenceQueue, keySet, maintenance, makeDead, makeSerializationProxy, merge, notifyRemoval, onAccess, pacer, performCleanUp, put, put, put, putIfAbsent, refreshAfterWrite, refreshAfterWriteNanos, refreshIfNeeded, remap, remove, remove, removeNode, reorder, reorderProbation, replace, replace, replaceAll, sampleCount, scheduleAfterWrite, scheduleDrainBuffers, setAccessTime, setExpiresAfterAccessNanos, setExpiresAfterWriteNanos, setMaximumSize, setRefreshAfterWriteNanos, setSampleCount, setVariableTime, setWriteTime, size, skipReadBuffer, statsCounter, statsTicker, timerWheel, tryExpireAfterRead, 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
-
-
-
-
Field Detail
-
maximum
long maximum
-
weightedSize
long weightedSize
-
windowMaximum
long windowMaximum
-
windowWeightedSize
long windowWeightedSize
-
mainProtectedMaximum
long mainProtectedMaximum
-
mainProtectedWeightedSize
long mainProtectedWeightedSize
-
stepSize
double stepSize
-
adjustment
long adjustment
-
hitsInSample
int hitsInSample
-
missesInSample
int missesInSample
-
previousSampleHitRate
double previousSampleHitRate
-
sketch
final FrequencySketch<K> sketch
-
accessOrderWindowDeque
final AccessOrderDeque<Node<K,V>> accessOrderWindowDeque
-
accessOrderProbationDeque
final AccessOrderDeque<Node<K,V>> accessOrderProbationDeque
-
accessOrderProtectedDeque
final AccessOrderDeque<Node<K,V>> accessOrderProtectedDeque
-
-
Method Detail
-
evicts
protected final boolean evicts()
Description copied from class:BoundedLocalCache
Returns if the cache evicts entries due to a maximum size or weight threshold.- Overrides:
evicts
in classBoundedLocalCache<K,V>
-
maximum
protected final long maximum()
Description copied from class:BoundedLocalCache
Returns the maximum weighted size.- Overrides:
maximum
in classBoundedLocalCache<K,V>
-
setMaximum
protected final void setMaximum(long maximum)
- Overrides:
setMaximum
in classBoundedLocalCache<K,V>
-
weightedSize
protected final long weightedSize()
Description copied from class:BoundedLocalCache
Returns the combined weight of the values in the cache (may be negative).- Overrides:
weightedSize
in classBoundedLocalCache<K,V>
-
setWeightedSize
protected final void setWeightedSize(long weightedSize)
- Overrides:
setWeightedSize
in classBoundedLocalCache<K,V>
-
windowMaximum
protected final long windowMaximum()
Description copied from class:BoundedLocalCache
Returns the maximum weighted size of the window space.- Overrides:
windowMaximum
in classBoundedLocalCache<K,V>
-
setWindowMaximum
protected final void setWindowMaximum(long windowMaximum)
- Overrides:
setWindowMaximum
in classBoundedLocalCache<K,V>
-
windowWeightedSize
protected final long windowWeightedSize()
Description copied from class:BoundedLocalCache
Returns the uncorrected combined weight of the values in the window space.- Overrides:
windowWeightedSize
in classBoundedLocalCache<K,V>
-
setWindowWeightedSize
protected final void setWindowWeightedSize(long windowWeightedSize)
- Overrides:
setWindowWeightedSize
in classBoundedLocalCache<K,V>
-
mainProtectedMaximum
protected final long mainProtectedMaximum()
Description copied from class:BoundedLocalCache
Returns the maximum weighted size of the main's protected space.- Overrides:
mainProtectedMaximum
in classBoundedLocalCache<K,V>
-
setMainProtectedMaximum
protected final void setMainProtectedMaximum(long mainProtectedMaximum)
- Overrides:
setMainProtectedMaximum
in classBoundedLocalCache<K,V>
-
mainProtectedWeightedSize
protected final long mainProtectedWeightedSize()
Description copied from class:BoundedLocalCache
Returns the uncorrected combined weight of the values in the main's protected space.- Overrides:
mainProtectedWeightedSize
in classBoundedLocalCache<K,V>
-
setMainProtectedWeightedSize
protected final void setMainProtectedWeightedSize(long mainProtectedWeightedSize)
- Overrides:
setMainProtectedWeightedSize
in classBoundedLocalCache<K,V>
-
stepSize
protected final double stepSize()
- Overrides:
stepSize
in classBoundedLocalCache<K,V>
-
setStepSize
protected final void setStepSize(double stepSize)
- Overrides:
setStepSize
in classBoundedLocalCache<K,V>
-
adjustment
protected final long adjustment()
- Overrides:
adjustment
in classBoundedLocalCache<K,V>
-
setAdjustment
protected final void setAdjustment(long adjustment)
- Overrides:
setAdjustment
in classBoundedLocalCache<K,V>
-
hitsInSample
protected final int hitsInSample()
- Overrides:
hitsInSample
in classBoundedLocalCache<K,V>
-
setHitsInSample
protected final void setHitsInSample(int hitsInSample)
- Overrides:
setHitsInSample
in classBoundedLocalCache<K,V>
-
missesInSample
protected final int missesInSample()
- Overrides:
missesInSample
in classBoundedLocalCache<K,V>
-
setMissesInSample
protected final void setMissesInSample(int missesInSample)
- Overrides:
setMissesInSample
in classBoundedLocalCache<K,V>
-
previousSampleHitRate
protected final double previousSampleHitRate()
- Overrides:
previousSampleHitRate
in classBoundedLocalCache<K,V>
-
setPreviousSampleHitRate
protected final void setPreviousSampleHitRate(double previousSampleHitRate)
- Overrides:
setPreviousSampleHitRate
in classBoundedLocalCache<K,V>
-
frequencySketch
protected final FrequencySketch<K> frequencySketch()
- Overrides:
frequencySketch
in classBoundedLocalCache<K,V>
-
accessOrderWindowDeque
protected final AccessOrderDeque<Node<K,V>> accessOrderWindowDeque()
- Overrides:
accessOrderWindowDeque
in classBoundedLocalCache<K,V>
-
accessOrderProbationDeque
protected final AccessOrderDeque<Node<K,V>> accessOrderProbationDeque()
- Overrides:
accessOrderProbationDeque
in classBoundedLocalCache<K,V>
-
accessOrderProtectedDeque
protected final AccessOrderDeque<Node<K,V>> accessOrderProtectedDeque()
- Overrides:
accessOrderProtectedDeque
in classBoundedLocalCache<K,V>
-
-