Package discord4j.gateway.retry
Enum GatewayStateChange.State
- java.lang.Object
-
- java.lang.Enum<GatewayStateChange.State>
-
- discord4j.gateway.retry.GatewayStateChange.State
-
- All Implemented Interfaces:
Serializable,Comparable<GatewayStateChange.State>
- Enclosing class:
- GatewayStateChange
public static enum GatewayStateChange.State extends Enum<GatewayStateChange.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTEDDISCONNECTEDDISCONNECTED_RESUMERETRY_FAILEDRETRY_RESUME_STARTEDRETRY_STARTEDRETRY_SUCCEEDEDSESSION_INVALIDATED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GatewayStateChange.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static GatewayStateChange.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTED
public static final GatewayStateChange.State CONNECTED
-
DISCONNECTED
public static final GatewayStateChange.State DISCONNECTED
-
DISCONNECTED_RESUME
public static final GatewayStateChange.State DISCONNECTED_RESUME
-
RETRY_STARTED
public static final GatewayStateChange.State RETRY_STARTED
-
RETRY_RESUME_STARTED
public static final GatewayStateChange.State RETRY_RESUME_STARTED
-
RETRY_SUCCEEDED
public static final GatewayStateChange.State RETRY_SUCCEEDED
-
RETRY_FAILED
public static final GatewayStateChange.State RETRY_FAILED
-
SESSION_INVALIDATED
public static final GatewayStateChange.State SESSION_INVALIDATED
-
-
Method Detail
-
values
public static GatewayStateChange.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GatewayStateChange.State c : GatewayStateChange.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GatewayStateChange.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-