Package org.cache2k.core.eviction
Interface EvictionMetrics
-
public interface EvictionMetricsAccess to eviction metrics. Eviction counters are separate fromCommonMetricsbecause its more efficient to implement these counters within the eviction algorithm and its respective locking.- Author:
- Jens Wilke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetEvictedCount()Number of entries evictedlonggetEvictedWeight()Accumulated weight of evicted or deleted entriesintgetEvictionRunningCount()Number of eviction currently going onlonggetExpiredRemovedCount()Removed entries, because expiredlonggetIdleNonEvictDrainCount()Entries removed from the cache which have either expired or are removed programmatically, or in other words, they were removed but not evicted.longgetMaxSize()Size limit after eviction kicks inlonggetMaxWeight()longgetNewEntryCount()longgetRemovedCount()longgetScanCount()Count of entries scanned for eviction.longgetSize()Number of entries in the eviction data structurelonggetTotalWeight()Accumulated weight of all entries currently controlled by eviction.longgetVirginRemovedCount()Removal of an entry that was never used
-
-
-
Method Detail
-
getNewEntryCount
long getNewEntryCount()
- See Also:
InternalCacheInfo.getNewEntryCount()
-
getRemovedCount
long getRemovedCount()
- See Also:
InternalCacheInfo.getRemoveCount()
-
getExpiredRemovedCount
long getExpiredRemovedCount()
Removed entries, because expired- See Also:
InternalCacheInfo.getExpiredCount()
-
getVirginRemovedCount
long getVirginRemovedCount()
Removal of an entry that was never used
-
getEvictedCount
long getEvictedCount()
Number of entries evicted- See Also:
InternalCacheInfo.getEvictedCount()
-
getEvictionRunningCount
int getEvictionRunningCount()
Number of eviction currently going on
-
getSize
long getSize()
Number of entries in the eviction data structure
-
getMaxSize
long getMaxSize()
Size limit after eviction kicks in
-
getMaxWeight
long getMaxWeight()
-
getTotalWeight
long getTotalWeight()
Accumulated weight of all entries currently controlled by eviction.
-
getEvictedWeight
long getEvictedWeight()
Accumulated weight of evicted or deleted entries
-
getScanCount
long getScanCount()
Count of entries scanned for eviction. Used to evict idle entries.- See Also:
IdleScan
-
getIdleNonEvictDrainCount
long getIdleNonEvictDrainCount()
Entries removed from the cache which have either expired or are removed programmatically, or in other words, they were removed but not evicted. Reset at the start of each idle scan round. This is used to compensate scan rates for idle scanning rounds.- Returns:
- number of entries actively removed since scan round start.
- See Also:
IdleScan
-
-