public class TCacheStatisticsBean extends Object implements TCacheStatisticsMXBean, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TCacheStatisticsBean.StatisticsAveragingMode |
| Constructor and Description |
|---|
TCacheStatisticsBean(Cache<?,?> tcache,
StatisticsCalculator statisticsCalculator,
TCacheStatisticsBean.StatisticsAveragingMode averagingMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
float |
getAverageGetTime() |
float |
getAveragePutTime() |
float |
getAverageRemoveTime() |
long |
getCacheEvictions()
Implementation note:
Evictions in TCache are "evictions + drops".
|
long |
getCacheGets() |
float |
getCacheHitPercentage() |
long |
getCacheHits() |
long |
getCacheMisses() |
float |
getCacheMissPercentage() |
long |
getCachePuts() |
long |
getCacheRemovals() |
int |
getSize() |
public TCacheStatisticsBean(Cache<?,?> tcache, StatisticsCalculator statisticsCalculator, TCacheStatisticsBean.StatisticsAveragingMode averagingMode)
public 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()
JamPolicy.
Drops can be considered as "eviction of the newest element".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 int getSize()
getSize in interface TCacheStatisticsMXBeanCopyright © 2018 trivago. All rights reserved.