public class RICacheStatistics extends Object implements javax.cache.management.CacheStatisticsMXBean, Serializable
CacheStatisticsMXBean.| Constructor and Description |
|---|
RICacheStatistics(AdvancedCache<?,?> cache)
Constructs a cache statistics object
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGetTimeNano(long duration) |
void |
clear()
Statistics will also automatically be cleared if internal counters
overflow.
|
float |
getAverageGetTime()
The mean time to execute gets.
|
float |
getAveragePutTime()
The mean time to execute puts.
|
float |
getAverageRemoveTime()
The mean time to execute removes.
|
long |
getCacheEvictions() |
long |
getCacheGets()
The total number of requests to the cache.
|
float |
getCacheHitPercentage()
Returns cache hits as a percentage of total gets.
|
long |
getCacheHits() |
long |
getCacheMisses() |
float |
getCacheMissPercentage()
Returns cache misses as a percentage of total gets.
|
long |
getCachePuts()
The total number of puts to the cache.
|
long |
getCacheRemovals()
The total number of removals from the cache.
|
void |
increaseCacheHits(long number) |
public RICacheStatistics(AdvancedCache<?,?> cache)
cache - the associated cachepublic void clear()
clear in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheHits()
getCacheHits in interface javax.cache.management.CacheStatisticsMXBeanpublic float getCacheHitPercentage()
getCacheHitPercentage in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheMisses()
getCacheMisses in interface javax.cache.management.CacheStatisticsMXBeanpublic float getCacheMissPercentage()
getCacheMissPercentage in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheGets()
getCacheGets in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCachePuts()
getCachePuts in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheRemovals()
getCacheRemovals in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheEvictions()
getCacheEvictions in interface javax.cache.management.CacheStatisticsMXBeanpublic float getAverageGetTime()
getAverageGetTime in interface javax.cache.management.CacheStatisticsMXBeanpublic float getAveragePutTime()
getAveragePutTime in interface javax.cache.management.CacheStatisticsMXBeanpublic float getAverageRemoveTime()
getAverageRemoveTime in interface javax.cache.management.CacheStatisticsMXBeanpublic void increaseCacheHits(long number)
public void addGetTimeNano(long duration)
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.