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>
CacheStatisticsProvider
implementation 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 CacheStatistics
getCacheStatistics(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.ehcache.EhCacheCache cache)
Return the currentCacheStatistics
snapshot for the specifiedCache
ornull
if 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:CacheStatisticsProvider
Return the currentCacheStatistics
snapshot for the specifiedCache
ornull
if the given cache could not be handled.- Specified by:
getCacheStatistics
in interfaceCacheStatisticsProvider<org.springframework.cache.ehcache.EhCacheCache>
- Parameters:
cacheManager
- theCacheManager
handling this cachecache
- the cache to handle- Returns:
- the current cache statistics or
null