public class CacheStatisticsImpl extends Object implements CacheStatistics
| Constructor and Description |
|---|
CacheStatisticsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the statistics counters to 0 for the associated Cache.
|
float |
getAverageGetMillis()
The mean time to execute gets.
|
float |
getAveragePutMillis()
The mean time to execute puts.
|
float |
getAverageRemoveMillis()
The mean time to execute removes.
|
long |
getCacheEvictions()
The total number of evictions from the cache.
|
long |
getCacheGets()
The total number of requests to the cache.
|
float |
getCacheHitPercentage()
This is a measure of cache efficiency.
|
long |
getCacheHits()
The number of get requests that were satisfied by the cache.
|
long |
getCacheMisses()
A miss is a get request which is not satisfied.
|
float |
getCacheMissPercentage()
Returns the percentage of cache accesses that did not find a requested entry in the cache.
|
long |
getCachePuts()
The total number of puts to the cache.
|
long |
getCacheRemovals()
The total number of removals from the cache.
|
Date |
getStartAccumulationDate()
The date from which statistics have been accumulated.
|
public void clear()
CacheStatisticsclear in interface CacheStatisticspublic Date getStartAccumulationDate()
CacheStatisticsgetStartAccumulationDate in interface CacheStatisticspublic long getCacheHits()
CacheStatisticsgetCacheHits in interface CacheStatisticspublic float getCacheHitPercentage()
CacheStatisticsCacheStatistics.getCacheHits() divided by CacheStatistics.getCacheGets() * 100.getCacheHitPercentage in interface CacheStatisticspublic long getCacheMisses()
CacheStatisticsgetCacheMisses in interface CacheStatisticspublic float getCacheMissPercentage()
CacheStatisticsCacheStatistics.getCacheMisses() divided by CacheStatistics.getCacheGets() * 100.getCacheMissPercentage in interface CacheStatisticspublic long getCacheGets()
CacheStatisticsgetCacheGets in interface CacheStatisticspublic long getCachePuts()
CacheStatisticsgetCachePuts in interface CacheStatisticspublic long getCacheRemovals()
CacheStatisticsgetCacheRemovals in interface CacheStatisticspublic long getCacheEvictions()
CacheStatisticsgetCacheEvictions in interface CacheStatisticspublic float getAverageGetMillis()
CacheStatisticsgetAverageGetMillis in interface CacheStatisticspublic float getAveragePutMillis()
CacheStatisticsgetAveragePutMillis in interface CacheStatisticspublic float getAverageRemoveMillis()
CacheStatisticsgetAverageRemoveMillis in interface CacheStatisticsCopyright © 2018 WSO2 Inc. All rights reserved.