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.CacheRequestrecordHit in interface CacheStatsTracker.CacheRequestpublic void recordMiss()
CacheStatsTracker.CacheRequestrecordMiss in interface CacheStatsTracker.CacheRequestpublic void recordMissMatch()
CacheStatsTracker.CacheRequestrecordMissMatch in interface CacheStatsTracker.CacheRequestpublic void recordLoadSuccess()
CacheStatsTracker.CacheRequestrecordLoadSuccess in interface CacheStatsTracker.CacheRequestpublic void recordLoadFail()
CacheStatsTracker.CacheRequestrecordLoadFail in interface CacheStatsTracker.CacheRequest