public enum GracefulDisconnectStatesEnum extends Enum<GracefulDisconnectStatesEnum> implements States
Enum Constant and Description |
---|
DELAY_STATE
Delay
|
END_STATE
The END_STATE
|
GRACEFUL_DISCONNECT_SEQUENCE_STATE
Sequence
|
LAST_GRACEFUL_DISCONNECT_STATE
terminal state
|
REFERRAL_STATE
Referral
|
REPLICATED_CONTEXTS_STATE
Replicated contexts
|
START_STATE
Initial state
|
TIME_OFFLINE_STATE
Time offline
|
Modifier and Type | Method and Description |
---|---|
String |
getGrammarName()
Get the grammar name
|
GracefulDisconnectStatesEnum |
getStartState() |
String |
getState(int state)
Get the string representing the state
|
boolean |
isEndState() |
static GracefulDisconnectStatesEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GracefulDisconnectStatesEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GracefulDisconnectStatesEnum END_STATE
public static final GracefulDisconnectStatesEnum START_STATE
public static final GracefulDisconnectStatesEnum GRACEFUL_DISCONNECT_SEQUENCE_STATE
public static final GracefulDisconnectStatesEnum TIME_OFFLINE_STATE
public static final GracefulDisconnectStatesEnum DELAY_STATE
public static final GracefulDisconnectStatesEnum REPLICATED_CONTEXTS_STATE
public static final GracefulDisconnectStatesEnum REFERRAL_STATE
public static final GracefulDisconnectStatesEnum LAST_GRACEFUL_DISCONNECT_STATE
public static GracefulDisconnectStatesEnum[] values()
for (GracefulDisconnectStatesEnum c : GracefulDisconnectStatesEnum.values()) System.out.println(c);
public static GracefulDisconnectStatesEnum 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 String getGrammarName()
public String getState(int state)
state
- The state numberpublic boolean isEndState()
isEndState
in interface States
public GracefulDisconnectStatesEnum getStartState()
getStartState
in interface States
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.