Enum CacheMetricsKeys
- java.lang.Object
-
- java.lang.Enum<CacheMetricsKeys>
-
- com.atlassian.confluence.impl.vcache.metrics.CacheMetricsKeys
-
- All Implemented Interfaces:
Serializable
,Comparable<CacheMetricsKeys>
public enum CacheMetricsKeys extends Enum<CacheMetricsKeys>
Types of common metrics supported by caches.- Since:
- 5.10
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
key()
static CacheMetricsKeys
valueOf(String name)
Returns the enum constant of this type with the specified name.static CacheMetricsKeys[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HITS
public static final CacheMetricsKeys HITS
-
MISSES
public static final CacheMetricsKeys MISSES
-
LOAD_TIME
public static final CacheMetricsKeys LOAD_TIME
-
PUT_TIME
public static final CacheMetricsKeys PUT_TIME
-
GET_TIME
public static final CacheMetricsKeys GET_TIME
-
-
Method Detail
-
values
public static CacheMetricsKeys[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CacheMetricsKeys c : CacheMetricsKeys.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CacheMetricsKeys valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
key
public String key()
-
-