public enum SubscriptionMode extends Enum<SubscriptionMode>
Defines mode specifiers that client’s can use when subscribing to statistics.
Enum Constant and Description |
---|
DELTA_COUNTER
Delta counter — client receives delta value between successive samples
|
PER_SECOND_COUNTER
Delta counter — client receives delta value representing the per second difference between successive samples, rounded to the nearest whole integer.
|
PERMANENT_FREQUENCY_DISTRIBUTION
Permanent frequency distribution where all samples always contribute (no rollover)
|
RESETTING_FREQUENCY_DISTRIBUTION
Frequency distribution where samples always contribute and the distribution is cleared when read by client
|
ROLLING_FREQUENCY_DISTRIBUTION
Frequency distribution with multiple generations and automatic rollover (default)
|
SIMPLE_COUNTER
Simple counter — client receives exact value of counter
|
SIMPLE_GAUGE
Simple gauge — client receives exact value of gauge
|
Modifier and Type | Method and Description |
---|---|
static String |
describe(SubscriptionMode mode) |
static boolean |
isValidCounterMode(SubscriptionMode mode) |
static boolean |
isValidSampleMode(SubscriptionMode mode) |
static SubscriptionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionMode SIMPLE_COUNTER
Simple counter — client receives exact value of counter
public static final SubscriptionMode SIMPLE_GAUGE
Simple gauge — client receives exact value of gauge
public static final SubscriptionMode DELTA_COUNTER
Delta counter — client receives delta value between successive samples
public static final SubscriptionMode PER_SECOND_COUNTER
Delta counter — client receives delta value representing the per second difference between successive samples, rounded to the nearest whole integer.
public static final SubscriptionMode ROLLING_FREQUENCY_DISTRIBUTION
Frequency distribution with multiple generations and automatic rollover (default)
public static final SubscriptionMode PERMANENT_FREQUENCY_DISTRIBUTION
Permanent frequency distribution where all samples always contribute (no rollover)
public static final SubscriptionMode RESETTING_FREQUENCY_DISTRIBUTION
Frequency distribution where samples always contribute and the distribution is cleared when read by client
public static SubscriptionMode[] values()
for (SubscriptionMode c : SubscriptionMode.values()) System.out.println(c);
public static SubscriptionMode 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 nullpublic static String describe(SubscriptionMode mode)
public static boolean isValidCounterMode(SubscriptionMode mode)
public static boolean isValidSampleMode(SubscriptionMode mode)