public interface CacheStatistics
Modifier and Type | Method and Description |
---|---|
default long |
getCapacity()
Gets the current capacity of the cache in a unit specific to the cache being monitored (e.g.
|
default long |
getEvictions()
Gets the number of items evicted from the cache in order to make space for new items.
|
java.lang.String |
getName()
Gets a descriptive name of the cache instance for which statistics apply.
|
default long |
getPercentFree()
Gets the percent free capacity remaining in the cache.
|
default long |
getSize()
Gets the current size of the cache in a unit specific to the cache being monitored (e.g.
|
java.lang.String |
toString(java.lang.StringBuilder builder)
Writes a string representation of cache statistics to the given string builder.
|
default long getSize()
default long getCapacity()
default long getEvictions()
default long getPercentFree()
java.lang.String getName()
java.lang.String toString(java.lang.StringBuilder builder)
builder
- String builder to which string representation is appended.