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 TypeMethodDescriptiongetCacheStatistics
(String cacheName) Obtain snapshot of the captured statistics.
-
Method Details
-
getCacheStatistics
Obtain snapshot of the captured statistics. May return a statistics object whose counters are zero if there are no statistics forcacheName
.- Parameters:
cacheName
- must not be null.- Returns:
- never null.
-