public class SegmentCacheStats extends AbstractCacheStats
TYPE
Constructor and Description |
---|
SegmentCacheStats(@NotNull java.lang.String name,
@NotNull java.util.function.Supplier<java.lang.Long> maximumWeight,
@NotNull java.util.function.Supplier<java.lang.Long> elementCount,
@NotNull java.util.function.Supplier<java.lang.Long> currentWeight,
@NotNull java.util.function.Supplier<java.lang.Long> evictionCount) |
Modifier and Type | Method and Description |
---|---|
long |
estimateCurrentWeight()
Total weight of the complete cache.
|
protected CacheStats |
getCurrentStats()
Call back invoked to retrieve the most recent
CacheStats instance of the
underlying cache. |
long |
getElementCount()
Get the number of elements/objects in the cache.
|
long |
getMaxTotalWeight()
The maximum weight of entries the cache may contain.
|
cacheInfoAsString, getAverageLoadPenalty, getEvictionCount, getHitCount, getHitRate, getLoadCount, getLoadExceptionCount, getLoadExceptionRate, getLoadSuccessCount, getMissCount, getMissRate, getName, getRequestCount, getTotalLoadTime, resetStats, timeInWords
getDescription, getDescription, getDescription, getDescription, getImpact, getParameterName
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
public SegmentCacheStats(@NotNull @NotNull java.lang.String name, @NotNull @NotNull java.util.function.Supplier<java.lang.Long> maximumWeight, @NotNull @NotNull java.util.function.Supplier<java.lang.Long> elementCount, @NotNull @NotNull java.util.function.Supplier<java.lang.Long> currentWeight, @NotNull @NotNull java.util.function.Supplier<java.lang.Long> evictionCount)
protected CacheStats getCurrentStats()
AbstractCacheStats
CacheStats
instance of the
underlying cache.getCurrentStats
in class AbstractCacheStats
public long getElementCount()
CacheStatsMBean
public long getMaxTotalWeight()
CacheStatsMBean
public long estimateCurrentWeight()
CacheStatsMBean
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.