public class NoOpCacheStatsTracker.NoOpCacheRequest extends Object implements CacheStatsTracker.CacheRequest
Constructor and Description |
---|
NoOpCacheRequest() |
Modifier and Type | Method and Description |
---|---|
void |
recordHit()
Records that a cache hit has occurred and updates the corresponding CacheStatsTracker, and
records the time it took for the cache retrieval
|
void |
recordLoadFail()
Records that a cache load has failed and updates the corresponding CacheStatsTracker, and
records the time spent on a cache miss
|
void |
recordLoadSuccess()
Records that a cache load was successful and updates the corresponding CacheStatsTracker, 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 CacheStatsTracker, 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
CacheStatsTracker, and starts recording the load time starting at this instant.
|
public void recordHit()
CacheStatsTracker.CacheRequest
recordHit
in interface CacheStatsTracker.CacheRequest
public void recordMiss()
CacheStatsTracker.CacheRequest
recordMiss
in interface CacheStatsTracker.CacheRequest
public void recordMissMatch()
CacheStatsTracker.CacheRequest
recordMissMatch
in interface CacheStatsTracker.CacheRequest
public void recordLoadSuccess()
CacheStatsTracker.CacheRequest
recordLoadSuccess
in interface CacheStatsTracker.CacheRequest
public void recordLoadFail()
CacheStatsTracker.CacheRequest
recordLoadFail
in interface CacheStatsTracker.CacheRequest