Interface EvictionMetrics


  • public interface EvictionMetrics
    Access to eviction metrics. Eviction counters are separate from CommonMetrics because its more efficient to implement these counters within the eviction algorithm and its respective locking.
    Author:
    Jens Wilke
    • Method Detail

      • getVirginRemovedCount

        long getVirginRemovedCount()
        Removal of an entry that was never used
      • 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