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>
CacheStatisticsProvider
implementation forConcurrentMapCache
.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description ConcurrentMapCacheStatisticsProvider()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheStatistics
getCacheStatistics(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.concurrent.ConcurrentMapCache cache)
Return the currentCacheStatistics
snapshot for the specifiedCache
ornull
if 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: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.concurrent.ConcurrentMapCache>
- Parameters:
cacheManager
- theCacheManager
handling this cachecache
- the cache to handle- Returns:
- the current cache statistics or
null