Interface CacheStatisticsProvider

All Known Subinterfaces:
CacheStatisticsCollector, RedisCacheWriter

public interface CacheStatisticsProvider
Interface to be implemented by objects that expose CacheStatistics identified by cacheName. Typically used by cache writers.
Since:
2.4
Author:
Christoph Strobl, Mark Paluch
  • Method Summary

    Modifier and Type
    Method
    Description
    Obtain snapshot of the captured statistics.
  • Method Details

    • getCacheStatistics

      CacheStatistics getCacheStatistics(String cacheName)
      Obtain snapshot of the captured statistics. May return a statistics object whose counters are zero if there are no statistics for cacheName.
      Parameters:
      cacheName - must not be null.
      Returns:
      never null.