类 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>
CacheStatisticsProvider
implementation for a JSR-107 compliant cache.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 JCacheCacheStatisticsProvider()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected CacheStatistics
getCacheStatistics(ObjectName objectName)
Return the currentCacheStatistics
snapshot from the MBean identified by the specifiedObjectName
.protected ObjectName
getObjectName(org.springframework.cache.jcache.JCacheCache cache)
Return theObjectName
of the MBean that is managing the specified cache ornull
if 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
从类复制的说明:AbstractJmxCacheStatisticsProvider
Return theObjectName
of the MBean that is managing the specified cache ornull
if 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 theObjectName
for that cache is invalid
getCacheStatistics
protected CacheStatistics getCacheStatistics(ObjectName objectName)
从类复制的说明:AbstractJmxCacheStatisticsProvider
Return the currentCacheStatistics
snapshot 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