public class ChunkCacheMetrics extends CacheMetrics implements com.github.benmanes.caffeine.cache.stats.StatsCounter
ICache.| Modifier and Type | Field and Description |
|---|---|
com.codahale.metrics.Timer |
missLatency
Latency of misses
|
capacity, entries, factory, fifteenMinuteHitRate, fiveMinuteHitRate, hitRate, hits, misses, oneMinuteHitRate, requests, size| Constructor and Description |
|---|
ChunkCacheMetrics(ChunkCache cache)
Create metrics for the provided chunk cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
recordEviction() |
void |
recordHits(int count) |
void |
recordLoadFailure(long loadTime) |
void |
recordLoadSuccess(long loadTime) |
void |
recordMisses(int count) |
com.github.benmanes.caffeine.cache.stats.CacheStats |
snapshot() |
resetpublic ChunkCacheMetrics(ChunkCache cache)
cache - Chunk cache to measure metricspublic void recordHits(int count)
recordHits in interface com.github.benmanes.caffeine.cache.stats.StatsCounterpublic void recordMisses(int count)
recordMisses in interface com.github.benmanes.caffeine.cache.stats.StatsCounterpublic void recordLoadSuccess(long loadTime)
recordLoadSuccess in interface com.github.benmanes.caffeine.cache.stats.StatsCounterpublic void recordLoadFailure(long loadTime)
recordLoadFailure in interface com.github.benmanes.caffeine.cache.stats.StatsCounterpublic void recordEviction()
recordEviction in interface com.github.benmanes.caffeine.cache.stats.StatsCounter@Nonnull public com.github.benmanes.caffeine.cache.stats.CacheStats snapshot()
snapshot in interface com.github.benmanes.caffeine.cache.stats.StatsCounterCopyright © 2009-2020 The Apache Software Foundation