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>
CacheStatisticsProviderimplementation 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 CacheStatisticsgetCacheStatistics(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.caffeine.CaffeineCache cache)Return the currentCacheStatisticssnapshot for the specifiedCacheornullif 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:CacheStatisticsProviderReturn the currentCacheStatisticssnapshot for the specifiedCacheornullif the given cache could not be handled.- Specified by:
getCacheStatisticsin interfaceCacheStatisticsProvider<org.springframework.cache.caffeine.CaffeineCache>- Parameters:
cacheManager- theCacheManagerhandling this cachecache- the cache to handle- Returns:
- the current cache statistics or
null