类 JCacheCacheStatisticsProvider
- java.lang.Object
- org.springframework.boot.actuate.cache.AbstractJmxCacheStatisticsProvider<org.springframework.cache.jcache.JCacheCache>
- org.springframework.boot.actuate.cache.JCacheCacheStatisticsProvider
- 所有已实现的接口:
CacheStatisticsProvider<org.springframework.cache.jcache.JCacheCache>
public class JCacheCacheStatisticsProvider extends AbstractJmxCacheStatisticsProvider<org.springframework.cache.jcache.JCacheCache>
CacheStatisticsProviderimplementation for a JSR-107 compliant cache.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 JCacheCacheStatisticsProvider()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected CacheStatisticsgetCacheStatistics(ObjectName objectName)Return the currentCacheStatisticssnapshot from the MBean identified by the specifiedObjectName.protected ObjectNamegetObjectName(org.springframework.cache.jcache.JCacheCache cache)Return theObjectNameof the MBean that is managing the specified cache ornullif none is found.从类继承的方法 org.springframework.boot.actuate.cache.AbstractJmxCacheStatisticsProvider
getAttribute, getCacheStatistics, getMBeanServer
构造器详细资料
JCacheCacheStatisticsProvider
public JCacheCacheStatisticsProvider()
方法详细资料
getObjectName
protected ObjectName getObjectName(org.springframework.cache.jcache.JCacheCache cache) throws MalformedObjectNameException
从类复制的说明:AbstractJmxCacheStatisticsProviderReturn theObjectNameof the MBean that is managing the specified cache ornullif none is found.- 指定者:
getObjectName在类中AbstractJmxCacheStatisticsProvider<org.springframework.cache.jcache.JCacheCache>- 参数:
cache- the cache to handle- 返回:
- the object name of the cache statistics MBean
- 抛出:
MalformedObjectNameException- if theObjectNamefor that cache is invalid
getCacheStatistics
protected CacheStatistics getCacheStatistics(ObjectName objectName)
从类复制的说明:AbstractJmxCacheStatisticsProviderReturn the currentCacheStatisticssnapshot from the MBean identified by the specifiedObjectName.- 指定者:
getCacheStatistics在类中AbstractJmxCacheStatisticsProvider<org.springframework.cache.jcache.JCacheCache>- 参数:
objectName- the object name of the cache statistics MBean- 返回:
- the current cache statistics