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() |
reset
public ChunkCacheMetrics(ChunkCache cache)
cache
- Chunk cache to measure metricspublic void recordHits(int count)
recordHits
in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
public void recordMisses(int count)
recordMisses
in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
public void recordLoadSuccess(long loadTime)
recordLoadSuccess
in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
public void recordLoadFailure(long loadTime)
recordLoadFailure
in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
public 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.StatsCounter
Copyright © 2009-2021 The Apache Software Foundation