|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CacheStatisticsKey>
com.atlassian.cache.CacheStatisticsKey
public enum CacheStatisticsKey
An immutable representation of a statistics key for a Cache.
This class is used by ManagedCache.getStatistics() to dynamically distinguish different cache
statistics available for a Cache.
| Enum Constant Summary | |
|---|---|
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. |
|
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. |
|
SIZE
Returns the number of cached objects kept referenced by the Cache (depends on the cache implementation) |
|
TOTAL_MISS_TIME
Returns the number of nanoseconds spent computing values for cache misses. |
|
| Field Summary | |
|---|---|
static Comparator<CacheStatisticsKey> |
SORT_BY_LABEL
Sorts cache statistics keys by label. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
Cache lookup methods have returned an uncached (newly
loaded) value, or null. Multiple concurrent calls to Cache lookup methods on an absent
value can result in multiple misses, all returning the results of a single cache load
operation.
public static final CacheStatisticsKey TOTAL_MISS_TIME
public static final CacheStatisticsKey EVICTION_COUNT
| Field Detail |
|---|
public static Comparator<CacheStatisticsKey> SORT_BY_LABEL
label.
| Method Detail |
|---|
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 name
NullPointerException - if the argument is null@Nonnull public String getLabel()
Enum.name(), except written in camelCase.
@Nonnull public StatisticsType getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||