Class CaffeineCacheStatisticsProvider
- java.lang.Object
- org.springframework.boot.actuate.cache.CaffeineCacheStatisticsProvider
- All Implemented Interfaces:
CacheStatisticsProvider<org.springframework.cache.caffeine.CaffeineCache>
public class CaffeineCacheStatisticsProvider extends Object implements CacheStatisticsProvider<org.springframework.cache.caffeine.CaffeineCache>
CacheStatisticsProvider
implementation for Caffeine.- Since:
- 1.4.0
Constructor Summary
Constructors Constructor Description CaffeineCacheStatisticsProvider()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheStatistics
getCacheStatistics(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.caffeine.CaffeineCache cache)
Return the currentCacheStatistics
snapshot for the specifiedCache
ornull
if the given cache could not be handled.
Constructor Detail
CaffeineCacheStatisticsProvider
public CaffeineCacheStatisticsProvider()
Method Detail
getCacheStatistics
public CacheStatistics getCacheStatistics(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.caffeine.CaffeineCache 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.caffeine.CaffeineCache>
- Parameters:
cacheManager
- theCacheManager
handling this cachecache
- the cache to handle- Returns:
- the current cache statistics or
null