public interface CacheStatistics
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Reset the values for this cache and its underlying tiers. 
 | 
long | 
getCacheEvictions()
How many evictions occurred on the cache since its creation or the latest  
clear() | 
long | 
getCacheExpirations()
How many expirations occurred on the cache since its creation or the latest  
clear() | 
long | 
getCacheGets()
How many gets occurred on the cache since its creation or the latest  
clear() | 
float | 
getCacheHitPercentage()
The percentage of hits compared to all gets since the cache creation or the latest  
clear() | 
long | 
getCacheHits()
How many hits occurred on the cache since its creation or the latest  
clear() | 
long | 
getCacheMisses()
How many misses occurred on the cache since its creation or the latest  
clear() | 
float | 
getCacheMissPercentage()
The percentage of misses compared to all gets since the cache creation or the latest  
clear() | 
long | 
getCachePuts()
How many puts occurred on the cache since its creation or the latest  
clear() | 
long | 
getCacheRemovals()
How many removals occurred on the cache since its creation or the latest  
clear() | 
java.util.Map<java.lang.String,TierStatistics> | 
getTierStatistics()
Map of tier statistics on this cache. 
 | 
<T extends java.lang.Enum<T>,S extends ChainedOperationObserver<? super T>> | 
registerDerivedStatistic(java.lang.Class<T> outcomeClass,
                        java.lang.String statName,
                        S derivedStatistic)
Register a derived statistic to one of the existing statistic. 
 | 
java.util.Map<java.lang.String,TierStatistics> getTierStatistics()
<T extends java.lang.Enum<T>,S extends ChainedOperationObserver<? super T>> void registerDerivedStatistic(java.lang.Class<T> outcomeClass, java.lang.String statName, S derivedStatistic)
T - type of the outcomeS - type of the derived statisticoutcomeClass - the enum of the possible outcomesstatName - name of the statistic we are looking forderivedStatistic - derived statistic to registervoid clear()
Implementation note: Calling clear doesn't really clear the data. It freezes the actual values and compensate for them when returning a result.
long getCacheHits()
clear()float getCacheHitPercentage()
clear()long getCacheMisses()
clear()float getCacheMissPercentage()
clear()long getCacheGets()
clear()long getCachePuts()
clear()long getCacheRemovals()
clear()long getCacheEvictions()
clear()long getCacheExpirations()
clear()