Interface BlockCache.Stats
- Enclosing interface:
BlockCache
public static interface BlockCache.Stats
Cache statistics.
All counts returned by this interface must be monotonically increasing. They must never reset or decrease, as the values are read periodically and the increase between readings is what gets reported.
-
Method Summary
Modifier and TypeMethodDescriptionlonglonghitCount()Returns the number of lookups that have returned a cached value.longReturns the number of times the lookup methods have returned either a cached or uncached value.
-
Method Details
-
hitCount
long hitCount()Returns the number of lookups that have returned a cached value.- Returns:
- the number of lookups that have returned a cached value
-
requestCount
long requestCount()Returns the number of times the lookup methods have returned either a cached or uncached value.- Returns:
- the number of lookups
-
evictionCount
long evictionCount()- Returns:
- The number of entries evicted from the cache.
- Since:
- 4.0.0
-