public enum StatisticsType extends Enum<StatisticsType>
StatisticsKey represents.
The different types of statistics have different underlying meanings and might be represented differently in a management user interface.
| Enum Constant and Description |
|---|
COUNTER
A statistic that counts the number of times an event has occurred, such as the number of
times that a given lock has been acquired.
|
GAUGE
A statistic that represents something that represents a varying measurement, such as the
number of threads that are currently waiting to acquire a given lock.
|
| Modifier and Type | Method and Description |
|---|---|
static StatisticsType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatisticsType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatisticsType COUNTER
Statistics of this type should strictly increase in value, as they represent a tally of events that have already occurred, not a currently measured value.
public static final StatisticsType GAUGE
Statistics of this type may either increase or decrease over time, as they represent a currently measure value, not a tally of discrete events.
public static StatisticsType[] values()
for (StatisticsType c : StatisticsType.values()) System.out.println(c);
public static StatisticsType 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 nullCopyright © 2019 Atlassian. All rights reserved.