tuwien.auto.calimero.buffer.cache
Interface Cache.Statistic

All Known Implementing Classes:
StatisticImpl
Enclosing interface:
Cache

public static interface Cache.Statistic

Offers information about data counting and cache performance.


Method Summary
 double hitRatio()
          Returns the ratio between found CacheObjects to total requests through Cache.get(Object).
 long hits()
          Returns the total number of successful requests with Cache.get(Object) for a CacheObject.
 long misses()
          Returns the total number of CacheObject not found with Cache.get(Object).
 

Method Detail

hitRatio

double hitRatio()
Returns the ratio between found CacheObjects to total requests through Cache.get(Object).

This value is obtained through ratio = (hits / (hits + misses)).

Returns:
the hit ratio in the range [0,1]

hits

long hits()
Returns the total number of successful requests with Cache.get(Object) for a CacheObject.

Returns:
total hits

misses

long misses()
Returns the total number of CacheObject not found with Cache.get(Object).

Returns:
total misses