public enum CounterType extends Enum<CounterType>
| Enum Constant and Description |
|---|
BOUNDED_STRONG
A strong consistent and bounded counter.
|
UNBOUNDED_STRONG
A strong consistent and unbounded counter.
|
WEAK
A weak consistent counter.
|
| Modifier and Type | Method and Description |
|---|---|
static CounterType |
valueOf(int index) |
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 UNBOUNDED_STRONG
CounterOutOfBoundsException.public static final CounterType BOUNDED_STRONG
CounterOutOfBoundsException
if the boundaries are reached. The upper and lower bound are inclusive.public static final CounterType WEAK
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 nullpublic static CounterType valueOf(int index)
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.