public enum CounterType extends Enum<CounterType>
Enum Constant and Description |
---|
COUNTER
An unbounded counter that typically only either increments or decrements.
|
GAUGE
A counter that typically has a lower and/or upper bound with a value that may oscillate within the bounds.
|
Modifier and Type | Method and Description |
---|---|
static CounterType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CounterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CounterType COUNTER
public static final CounterType GAUGE
public static CounterType[] values()
for (CounterType c : CounterType.values()) System.out.println(c);
public static CounterType 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