public class InstrumentingCacheStatsTracker.TrackingCacheRequest extends Object implements CacheStatsTracker.CacheRequest
| Modifier and Type | Method and Description |
|---|---|
void |
recordHit()
Records that a cache hit has occurred and updates the corresponding
InstrumentingCacheStatsTracker, and records the time it took for the cache retrieval
|
void |
recordLoadFail()
Records that a cache load has failed and updates the corresponding
InstrumentingCacheStatsTracker, and records the time spent on a cache miss
|
void |
recordLoadSuccess()
Records that a cache load was successful and updates the corresponding
InstrumentingCacheStatsTracker, and records the time it took to load the object and updates
the total time spent on a cache miss
|
void |
recordMiss()
Records that a cache miss has occurred and updates the corresponding
InstrumentingCacheStatsTracker, and starts recording the load time starting at this instant.
|
void |
recordMissMatch()
Records that a cache miss due to mismatch has occurred and updates the corresponding
InstrumentingCacheStatsTracker, and starts recording the load time starting at this instant.
|
public void recordHit()
recordHit in interface CacheStatsTracker.CacheRequestpublic void recordMiss()
recordMiss in interface CacheStatsTracker.CacheRequestpublic void recordMissMatch()
recordMissMatch in interface CacheStatsTracker.CacheRequestpublic void recordLoadSuccess()
recordLoadSuccess in interface CacheStatsTracker.CacheRequestpublic void recordLoadFail()
recordLoadFail in interface CacheStatsTracker.CacheRequest