public static enum GatewayConnection.State extends Enum<GatewayConnection.State>
| Enum Constant and Description |
|---|
CONNECTED
Propagated when a connection receives a READY or RESUMED event.
|
DISCONNECTED
Propagated when a disconnection happens and is in the process or releasing its resources.
|
DISCONNECTING
Propagated when a connection is closed but before a retry or stop process is started.
|
RECONNECTING
Propagated when a connection is being retried and a new session must be established.
|
RESUMING
Propagated when a connection is being retried and the current session can be resumed.
|
START_IDENTIFYING
Propagated when a brand new connection is in the process of authenticating through IDENTIFY payload.
|
START_RESUMING
Propagated when a brand new connection is in the process of resuming a session.
|
| Modifier and Type | Method and Description |
|---|---|
static GatewayConnection.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GatewayConnection.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GatewayConnection.State START_IDENTIFYING
public static final GatewayConnection.State START_RESUMING
public static final GatewayConnection.State CONNECTED
public static final GatewayConnection.State DISCONNECTING
public static final GatewayConnection.State RESUMING
public static final GatewayConnection.State RECONNECTING
public static final GatewayConnection.State DISCONNECTED
public static GatewayConnection.State[] values()
for (GatewayConnection.State c : GatewayConnection.State.values()) System.out.println(c);
public static GatewayConnection.State 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 null