
Oracle® Coherence Java API Reference v3.5.3 E1558301 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
public interface CacheStatistics
An interface for exposing Cache statistics.
Method Summary  

double 
getAverageGetMillis()
Determine the average number of milliseconds per get() invocation since the cache statistics were last reset. 
double 
getAverageHitMillis()
Determine the average number of milliseconds per get() invocation that is a hit. 
double 
getAverageMissMillis()
Determine the average number of milliseconds per get() invocation that is a miss. 
double 
getAveragePutMillis()
Determine the average number of milliseconds per put() invocation since the cache statistics were last reset. 
long 
getCacheHits()
Determine the rough number of cache hits since the cache statistics were last reset. 
long 
getCacheHitsMillis()
Determine the total number of milliseconds (since that last statistics reset) for the get() operations for which an entry existed in this map. 
long 
getCacheMisses()
Determine the rough number of cache misses since the cache statistics were last reset. 
long 
getCacheMissesMillis()
Determine the total number of milliseconds (since that last statistics reset) for the get() operations for which no entry existed in this map. 
long 
getCachePrunes()
Determine the rough number of cache pruning cycles since the cache statistics were last reset. 
long 
getCachePrunesMillis()
Determine the total number of milliseconds (since that last statistics reset) spent on cache pruning. 
double 
getHitProbability()
Determine the rough probability (0 <= p <= 1) that the next invocation will be a hit, based on the statistics collected since the last reset of the cache statistics. 
long 
getTotalGets()
Determine the total number of get() operations since the cache statistics were last reset. 
long 
getTotalGetsMillis()
Determine the total number of milliseconds spent on get() operations since the cache statistics were last reset. 
long 
getTotalPuts()
Determine the total number of put() operations since the cache statistics were last reset. 
long 
getTotalPutsMillis()
Determine the total number of milliseconds spent on put() operations since the cache statistics were last reset. 
void 
resetHitStatistics()
Reset all of the cache statistics. 
Method Detail 

long getTotalGets()
long getTotalGetsMillis()
double getAverageGetMillis()
long getTotalPuts()
long getTotalPutsMillis()
double getAveragePutMillis()
long getCacheHits()
A cache hit is a read operation invocation (e.g. get()) for which an entry exists in this map.
long getCacheHitsMillis()
double getAverageHitMillis()
long getCacheMisses()
A cache miss is a get() invocation that does not have an entry in this map.
long getCacheMissesMillis()
double getAverageMissMillis()
double getHitProbability()
long getCachePrunes()
For the LocalCache implementation, this refers to the number of times that the prune() method is executed.
long getCachePrunesMillis()
For the LocalCache implementation, this refers to the time spent in the prune() method.
void resetHitStatistics()
Note that the method name implies that only the hit statistics are cleared, which is not the case; all of the statistics are cleared.

Oracle® Coherence Java API Reference v3.5.3 E1558301 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 