Class SegmentCacheStats

  • All Implemented Interfaces:,, CacheStatsMBean

    public class SegmentCacheStats
    extends AbstractCacheStats
    • Constructor Detail

      • SegmentCacheStats

        public SegmentCacheStats​(@NotNull
                                 @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)
    • Method Detail

      • getCurrentStats

        protected org.apache.jackrabbit.guava.common.cache.CacheStats getCurrentStats()
        Description copied from class: AbstractCacheStats
        Call back invoked to retrieve the most recent CacheStats instance of the underlying cache.
        Specified by:
        getCurrentStats in class AbstractCacheStats
      • getElementCount

        public long getElementCount()
        Description copied from interface: CacheStatsMBean
        Get the number of elements/objects in the cache.
        the number of elements
      • getMaxTotalWeight

        public long getMaxTotalWeight()
        Description copied from interface: CacheStatsMBean
        The maximum weight of entries the cache may contain.
        the maximum total weight of entries the cache may contain
      • estimateCurrentWeight

        public long estimateCurrentWeight()
        Description copied from interface: CacheStatsMBean
        Total weight of the complete cache. Depending on implementation it might be the amount of RAM taken by the cache
        to weight of the cache