Interface CacheStatisticsManager

All Known Implementing Classes:
EhCacheStatisticsManager, HazelcastStatisticsManager

public interface CacheStatisticsManager
Provides information on how effective each managed cache is.
  • Field Details

  • Method Details

    • getLocalCacheStatistics

      @Deprecated List<CacheStatistics> getLocalCacheStatistics()
      Deprecated.
      since 7.5 Use ManagedCache.getStatistics()
      Retrieve all the cache statistics for locally held caches. In a clustered setting, distributed caches will report only on the locally held portion of the cache.
      Returns:
      list of cache statistics sorted by their localised CacheStatistics.getNiceName().
    • getLocalCacheStatistics

      @Deprecated CacheStatistics getLocalCacheStatistics(String cacheName)
      Deprecated.
      since 7.5 Use ManagedCache.getStatistics()
      Retrieve the cache statistics for one locally held cache. In a clustered setting, distributed caches will report only on the locally held portion of the cache.
      Returns:
      list of cache statistics sorted by their localised CacheStatistics.getNiceName().
    • getCapabilities

      Set<CacheStatisticsCapability> getCapabilities()
      Returns the set of optional capabilities supported by this implementation
      Since:
      5.5
    • getCacheStatisticFilter

      default Predicate<com.atlassian.cache.CacheStatisticsKey> getCacheStatisticFilter(String cacheName)
      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.
      Since:
      7.5