Class EhCacheStatisticsProvider
- java.lang.Object
- org.springframework.boot.actuate.cache.EhCacheStatisticsProvider
- All Implemented Interfaces:
CacheStatisticsProvider<org.springframework.cache.ehcache.EhCacheCache>
public class EhCacheStatisticsProvider extends Object implements CacheStatisticsProvider<org.springframework.cache.ehcache.EhCacheCache>
CacheStatisticsProviderimplementation for EhCache.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description EhCacheStatisticsProvider()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheStatisticsgetCacheStatistics(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.ehcache.EhCacheCache cache)Return the currentCacheStatisticssnapshot for the specifiedCacheornullif the given cache could not be handled.
Constructor Detail
EhCacheStatisticsProvider
public EhCacheStatisticsProvider()
Method Detail
getCacheStatistics
public CacheStatistics getCacheStatistics(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.ehcache.EhCacheCache cache)
Description copied from interface:CacheStatisticsProviderReturn the currentCacheStatisticssnapshot for the specifiedCacheornullif the given cache could not be handled.- Specified by:
getCacheStatisticsin interfaceCacheStatisticsProvider<org.springframework.cache.ehcache.EhCacheCache>- Parameters:
cacheManager- theCacheManagerhandling this cachecache- the cache to handle- Returns:
- the current cache statistics or
null