StatsCounter implementation that does not record any cache events.
| Modifier and Type | Field and Description |
|---|---|
| public static final DisabledStatsCounter |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public CacheStats | snapshot()
Implements com. |
| public String | toString()
Overrides java. |
| public static DisabledStatsCounter | |
| public static DisabledStatsCounter[] |
| INSTANCE | back to summary |
|---|---|
| public static final DisabledStatsCounter INSTANCE | |
| DisabledStatsCounter | back to summary |
|---|---|
| private DisabledStatsCounter() | |
| recordEviction | back to summary |
|---|---|
public void recordEviction(@NonNegative 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 the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static DisabledStatsCounter valueOf(String name) | |
| values | back to summary |
|---|---|
| public static DisabledStatsCounter[] values() | |