Enum Class GatewayConnection.State

java.lang.Object
java.lang.Enum<GatewayConnection.State>
discord4j.gateway.GatewayConnection.State
All Implemented Interfaces:
Serializable, Comparable<GatewayConnection.State>, Constable
Enclosing class:
GatewayConnection

public static enum GatewayConnection.State extends Enum<GatewayConnection.State>
  • Enum Constant Details

    • START_IDENTIFYING

      public static final GatewayConnection.State START_IDENTIFYING
      Propagated when a brand new connection is in the process of authenticating through IDENTIFY payload.
    • START_RESUMING

      public static final GatewayConnection.State START_RESUMING
      Propagated when a brand new connection is in the process of resuming a session.
    • CONNECTED

      public static final GatewayConnection.State CONNECTED
      Propagated when a connection receives a READY or RESUMED event.
    • DISCONNECTING

      public static final GatewayConnection.State DISCONNECTING
      Propagated when a connection is closed but before a retry or stop process is started.
    • RESUMING

      public static final GatewayConnection.State RESUMING
      Propagated when a connection is being retried and the current session can be resumed.
    • RECONNECTING

      public static final GatewayConnection.State RECONNECTING
      Propagated when a connection is being retried and a new session must be established.
    • DISCONNECTED

      public static final GatewayConnection.State DISCONNECTED
      Propagated when a disconnection happens and is in the process or releasing its resources.
  • Method Details

    • values

      public static GatewayConnection.State[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GatewayConnection.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null