Class ConcurrentMapCacheStatisticsProvider
- java.lang.Object
- org.springframework.boot.actuate.cache.ConcurrentMapCacheStatisticsProvider
- All Implemented Interfaces:
CacheStatisticsProvider<org.springframework.cache.concurrent.ConcurrentMapCache>
public class ConcurrentMapCacheStatisticsProvider extends Object implements CacheStatisticsProvider<org.springframework.cache.concurrent.ConcurrentMapCache>
CacheStatisticsProviderimplementation forConcurrentMapCache.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description ConcurrentMapCacheStatisticsProvider()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheStatisticsgetCacheStatistics(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.concurrent.ConcurrentMapCache cache)Return the currentCacheStatisticssnapshot for the specifiedCacheornullif the given cache could not be handled.
Constructor Detail
ConcurrentMapCacheStatisticsProvider
public ConcurrentMapCacheStatisticsProvider()
Method Detail
getCacheStatistics
public CacheStatistics getCacheStatistics(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.concurrent.ConcurrentMapCache 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.concurrent.ConcurrentMapCache>- Parameters:
cacheManager- theCacheManagerhandling this cachecache- the cache to handle- Returns:
- the current cache statistics or
null