Interface CacheStatisticsProvider<C extends org.springframework.cache.Cache>
- Type Parameters:
C- TheCachetype
- All Known Implementing Classes:
AbstractJmxCacheStatisticsProvider,CaffeineCacheStatisticsProvider,ConcurrentMapCacheStatisticsProvider,EhCacheStatisticsProvider,GuavaCacheStatisticsProvider,HazelcastCacheStatisticsProvider,InfinispanCacheStatisticsProvider,JCacheCacheStatisticsProvider
public interface CacheStatisticsProvider<C extends org.springframework.cache.Cache>
Provide aCacheStatisticsbased on aCache.- Since:
- 1.3.0
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CacheStatisticsgetCacheStatistics(org.springframework.cache.CacheManager cacheManager, C cache)Return the currentCacheStatisticssnapshot for the specifiedCacheornullif the given cache could not be handled.
Method Detail
getCacheStatistics
CacheStatistics getCacheStatistics(org.springframework.cache.CacheManager cacheManager, C cache)
Return the currentCacheStatisticssnapshot for the specifiedCacheornullif the given cache could not be handled.- Parameters:
cacheManager- theCacheManagerhandling this cachecache- the cache to handle- Returns:
- the current cache statistics or
null