public final class InstrumentingCacheStatsTracker extends Object implements CacheStatsTracker
Modifier and Type | Class and Description |
---|---|
class |
InstrumentingCacheStatsTracker.TrackingCacheRequest
Class that keeps record and timings of a single cache request
|
CacheStatsTracker.CacheRequest
Constructor and Description |
---|
InstrumentingCacheStatsTracker() |
InstrumentingCacheStatsTracker(Clock clock) |
Modifier and Type | Method and Description |
---|---|
long |
getAverageLoadTime() |
long |
getAverageMissTime() |
long |
getAverageRetrievalTime() |
long |
getTotalEvictionCount() |
long |
getTotalHitCount() |
long |
getTotalInvalidationCount() |
long |
getTotalLoadExceptionCount() |
long |
getTotalLoadSuccessCount() |
long |
getTotalLoadTime() |
long |
getTotalMissCount() |
long |
getTotalMissMatchCount() |
long |
getTotalMissTime() |
long |
getTotalRetrievalTime() |
void |
recordEviction()
records a single eviction
|
void |
recordEviction(long num) |
void |
recordInvalidation()
records a single invalidation
|
void |
recordInvalidation(long num) |
CacheStatsTracker.CacheRequest |
startRequest() |
public InstrumentingCacheStatsTracker()
public InstrumentingCacheStatsTracker(Clock clock)
public CacheStatsTracker.CacheRequest startRequest()
startRequest
in interface CacheStatsTracker
public long getTotalHitCount()
getTotalHitCount
in interface CacheStatsTracker
public long getTotalMissCount()
getTotalMissCount
in interface CacheStatsTracker
public long getTotalMissMatchCount()
getTotalMissMatchCount
in interface CacheStatsTracker
public long getTotalEvictionCount()
getTotalEvictionCount
in interface CacheStatsTracker
public long getTotalInvalidationCount()
getTotalInvalidationCount
in interface CacheStatsTracker
public long getTotalLoadSuccessCount()
getTotalLoadSuccessCount
in interface CacheStatsTracker
public long getTotalLoadExceptionCount()
getTotalLoadExceptionCount
in interface CacheStatsTracker
public long getTotalRetrievalTime()
getTotalRetrievalTime
in interface CacheStatsTracker
public long getTotalLoadTime()
getTotalLoadTime
in interface CacheStatsTracker
public long getTotalMissTime()
getTotalMissTime
in interface CacheStatsTracker
public long getAverageRetrievalTime()
getAverageRetrievalTime
in interface CacheStatsTracker
public long getAverageMissTime()
getAverageMissTime
in interface CacheStatsTracker
public long getAverageLoadTime()
getAverageLoadTime
in interface CacheStatsTracker
public void recordEviction()
recordEviction
in interface CacheStatsTracker
public void recordEviction(long num)
recordEviction
in interface CacheStatsTracker
num
- the number of evictions to recordpublic void recordInvalidation()
recordInvalidation
in interface CacheStatsTracker
public void recordInvalidation(long num)
recordInvalidation
in interface CacheStatsTracker
num
- the number of invalidations to record