Class EhCacheStatisticsManager

java.lang.Object
com.atlassian.confluence.cache.ehcache.EhCacheStatisticsManager
All Implemented Interfaces:
CacheStatisticsFilterService

public class EhCacheStatisticsManager extends Object implements CacheStatisticsFilterService
Provides CacheStatistics for EhCache.
  • Constructor Details

  • Method Details

    • getCacheStatisticFilter

      public Predicate<com.atlassian.cache.CacheStatisticsKey> getCacheStatisticFilter(String cacheName)
      Description copied from interface: CacheStatisticsFilterService
      For a given cache, returns a predicate that can be used to filter which CacheStatisticsKeys are appropriate for that cache. For example, it may not be appropriate to measure the heap size for a given cache, so CacheStatisticsKey.HEAP_SIZE will not pass the predicate.
      Specified by:
      getCacheStatisticFilter in interface CacheStatisticsFilterService