public enum QueueCircuitState extends java.lang.Enum<QueueCircuitState>
| Modifier and Type | Method and Description |
|---|---|
static QueueCircuitState |
fromString(java.lang.String state,
QueueCircuitState defaultReturnValue)
Returns the enum QueueCircuitState which matches the specified String value.
|
static QueueCircuitState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QueueCircuitState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueueCircuitState CLOSED
public static final QueueCircuitState OPEN
public static final QueueCircuitState HALF_OPEN
public static QueueCircuitState[] values()
for (QueueCircuitState c : QueueCircuitState.values()) System.out.println(c);
public static QueueCircuitState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static QueueCircuitState fromString(java.lang.String state, QueueCircuitState defaultReturnValue)
state - The state as StringdefaultReturnValue - The QueueCircuitState to return when nothing matches (or null was provided)