Interface CacheStatisticsProvider<C extends org.springframework.cache.Cache>
- Type Parameters:
C
- TheCache
type
- All Known Implementing Classes:
AbstractJmxCacheStatisticsProvider
,CaffeineCacheStatisticsProvider
,ConcurrentMapCacheStatisticsProvider
,EhCacheStatisticsProvider
,GuavaCacheStatisticsProvider
,HazelcastCacheStatisticsProvider
,InfinispanCacheStatisticsProvider
,JCacheCacheStatisticsProvider
public interface CacheStatisticsProvider<C extends org.springframework.cache.Cache>
Provide aCacheStatistics
based on aCache
.- Since:
- 1.3.0
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CacheStatistics
getCacheStatistics(org.springframework.cache.CacheManager cacheManager, C cache)
Return the currentCacheStatistics
snapshot for the specifiedCache
ornull
if the given cache could not be handled.
Method Detail
getCacheStatistics
CacheStatistics getCacheStatistics(org.springframework.cache.CacheManager cacheManager, C cache)
Return the currentCacheStatistics
snapshot for the specifiedCache
ornull
if the given cache could not be handled.- Parameters:
cacheManager
- theCacheManager
handling this cachecache
- the cache to handle- Returns:
- the current cache statistics or
null