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.CacheStatisticsMXBean
public long getCacheHits()
getCacheHits
in interface javax.cache.management.CacheStatisticsMXBean
public float getCacheHitPercentage()
getCacheHitPercentage
in interface javax.cache.management.CacheStatisticsMXBean
public long getCacheMisses()
getCacheMisses
in interface javax.cache.management.CacheStatisticsMXBean
public float getCacheMissPercentage()
getCacheMissPercentage
in interface javax.cache.management.CacheStatisticsMXBean
public long getCacheGets()
getCacheGets
in interface javax.cache.management.CacheStatisticsMXBean
public long getCachePuts()
getCachePuts
in interface javax.cache.management.CacheStatisticsMXBean
public long getCacheRemovals()
getCacheRemovals
in interface javax.cache.management.CacheStatisticsMXBean
public long getCacheEvictions()
getCacheEvictions
in interface javax.cache.management.CacheStatisticsMXBean
public float getAverageGetTime()
getAverageGetTime
in interface javax.cache.management.CacheStatisticsMXBean
public float getAveragePutTime()
getAveragePutTime
in interface javax.cache.management.CacheStatisticsMXBean
public float getAverageRemoveTime()
getAverageRemoveTime
in interface javax.cache.management.CacheStatisticsMXBean
public void increaseCacheHits(long number)
public void addGetTimeNano(long duration)
Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.