Class HazelcastCacheStatisticsProvider
- java.lang.Object
- org.springframework.boot.actuate.cache.HazelcastCacheStatisticsProvider
- All Implemented Interfaces:
CacheStatisticsProvider<com.hazelcast.spring.cache.HazelcastCache>
public class HazelcastCacheStatisticsProvider extends Object implements CacheStatisticsProvider<com.hazelcast.spring.cache.HazelcastCache>
CacheStatisticsProviderimplementation for Hazelcast.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description HazelcastCacheStatisticsProvider()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheStatisticsgetCacheStatistics(org.springframework.cache.CacheManager cacheManager, com.hazelcast.spring.cache.HazelcastCache cache)Return the currentCacheStatisticssnapshot for the specifiedCacheornullif the given cache could not be handled.
Constructor Detail
HazelcastCacheStatisticsProvider
public HazelcastCacheStatisticsProvider()
Method Detail
getCacheStatistics
public CacheStatistics getCacheStatistics(org.springframework.cache.CacheManager cacheManager, com.hazelcast.spring.cache.HazelcastCache cache)
Description copied from interface:CacheStatisticsProviderReturn the currentCacheStatisticssnapshot for the specifiedCacheornullif the given cache could not be handled.- Specified by:
getCacheStatisticsin interfaceCacheStatisticsProvider<com.hazelcast.spring.cache.HazelcastCache>- Parameters:
cacheManager- theCacheManagerhandling this cachecache- the cache to handle- Returns:
- the current cache statistics or
null