public enum CacheStatisticsKey extends Enum<CacheStatisticsKey>
ManagedCache.getStatistics() to dynamically distinguish different cache
statistics available for a Cache.| Enum Constant and Description |
|---|
EVICTION_COUNT
Returns the number of times an entry has been evicted.
|
HEAP_SIZE
Returns the number of bytes used by the
Cache. |
HIT_COUNT
Returns the number of times
Cache lookup methods have returned a cached value. |
LOAD_COUNT
Returns the total number of times that Cache lookup methods attempted to load new values.
|
LOAD_EXCEPTION_COUNT
Returns the number of times Cache lookup methods threw an exception while loading a new value.
|
LOAD_SUCCESS_COUNT
Returns the number of times Cache lookup methods have successfully loaded a new value.
|
MISS_COUNT
Returns the number of times
Cache lookup methods have returned an uncached (newly
loaded) value, or null. |
PUT_COUNT
Returns the number of times
Cache put methods have added a cached value. |
REMOVE_COUNT
Returns the number of times
Cache remove methods have removed a cached value. |
REQUEST_COUNT
Returns the number of times Cache lookup methods have returned either a cached or uncached value.
|
SIZE
Returns the number of cached objects kept referenced by the
Cache (depends on the cache implementation) |
TOTAL_LOAD_TIME
Returns the total number of nanoseconds the cache has spent loading new values.
|
TOTAL_MISS_TIME
Returns the number of nanoseconds spent computing values for cache misses.
|
| Modifier and Type | Field and Description |
|---|---|
static Comparator<CacheStatisticsKey> |
SORT_BY_LABEL
Sorts cache statistics keys by
label. |
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel()
Returns the label for this cache statistics key.
|
StatisticsType |
getType()
Returns the type of statistic that this is.
|
static CacheStatisticsKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheStatisticsKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheStatisticsKey SIZE
Cache (depends on the cache implementation)public static final CacheStatisticsKey HEAP_SIZE
Cache.
Note: This is likely to be a very expensive statistic in some implementations, so consumers may want to discard it when it hasn't been explicitly requested. Even where available, the reported heap size is almost certain to be only an approximation of the cache's total memory use.
public static final CacheStatisticsKey HIT_COUNT
Cache lookup methods have returned a cached value.public static final CacheStatisticsKey PUT_COUNT
Cache put methods have added a cached value.public static final CacheStatisticsKey REMOVE_COUNT
Cache remove methods have removed a cached value.public static final CacheStatisticsKey MISS_COUNT
public static final CacheStatisticsKey LOAD_COUNT
public static final CacheStatisticsKey LOAD_SUCCESS_COUNT
public static final CacheStatisticsKey LOAD_EXCEPTION_COUNT
public static final CacheStatisticsKey TOTAL_MISS_TIME
public static final CacheStatisticsKey TOTAL_LOAD_TIME
public static final CacheStatisticsKey EVICTION_COUNT
public static final CacheStatisticsKey REQUEST_COUNT
public static Comparator<CacheStatisticsKey> SORT_BY_LABEL
label.public static CacheStatisticsKey[] values()
for (CacheStatisticsKey c : CacheStatisticsKey.values()) System.out.println(c);
public static CacheStatisticsKey valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull public String getLabel()
Enum.name(), except written in camelCase.@Nonnull public StatisticsType getType()
Copyright © 2018 Atlassian. All rights reserved.