|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheStatistics
Describes the simplest set of cache statistics that are meaningful for health monitoring.
| Method Summary | |
|---|---|
long |
getCapacity()
Gets the current capacity of the cache in a unit specific to the cache being monitored (e.g. |
long |
getEvictions()
Gets the number of items evicted from the cache in order to make space for new items. |
String |
getName()
Gets a descriptive name of the cache instance for which statistics apply. |
int |
getPercentFree()
Gets the percent free capacity remaining in the cache. |
long |
getSize()
Gets the current size of the cache in a unit specific to the cache being monitored (e.g. |
void |
toString(StringBuilder builder)
Writes a string representation of cache statistics to the given string builder. |
| Method Detail |
|---|
long getSize()
long getCapacity()
long getEvictions()
int getPercentFree()
String getName()
void toString(StringBuilder builder)
builder - String builder to which string representation is appended.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||