StatsCounter implementation that suppresses and logs any exception thrown by the
delegate statsCounter.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final StatsCounter | |
| pack-priv static final System. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public CacheStats | snapshot()
Implements com. |
| public String |
| delegate | back to summary |
|---|---|
| pack-priv final StatsCounter delegate | |
| logger | back to summary |
|---|---|
| pack-priv static final System. | |
| GuardedStatsCounter | back to summary |
|---|---|
| pack-priv GuardedStatsCounter(StatsCounter delegate) | |
| recordEviction | back to summary |
|---|---|
public void recordEviction(int weight, RemovalCause cause)
| |
| recordHits | back to summary |
|---|---|
public void recordHits(int count)
| |
| recordLoadFailure | back to summary |
|---|---|
public void recordLoadFailure(long loadTime)
| |
| recordLoadSuccess | back to summary |
|---|---|
public void recordLoadSuccess(long loadTime)
| |
| recordMisses | back to summary |
|---|---|
public void recordMisses(int count)
| |
| snapshot | back to summary |
|---|---|
| public CacheStats snapshot() Implements com. Doc from com. Returns a snapshot of this counter's values. Note that this may be an inconsistent view, as it may be interleaved with update operations. Note the values of the metrics are undefined in case of overflow (though it is guaranteed not to throw an exception). If you require specific handling, we recommend implementing your own stats collector.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |