Enum Class AgentConnection.State

java.lang.Object
java.lang.Enum<AgentConnection.State>
com.ultikits.ultitools.utils.AgentConnection.State
All Implemented Interfaces:
Serializable, Comparable<AgentConnection.State>, java.lang.constant.Constable
Enclosing class:
AgentConnection

static enum AgentConnection.State extends Enum<AgentConnection.State>
The states of the connection.
  • Enum Constant Details

    • IDLE

      public static final AgentConnection.State IDLE
      Never started.
    • CONNECTING

      public static final AgentConnection.State CONNECTING
      An attempt is in flight.
    • OPEN

      public static final AgentConnection.State OPEN
      The upgrade was accepted.
    • BACKOFF

      public static final AgentConnection.State BACKOFF
      Waiting to retry.
    • PLAN_LIMITED

      public static final AgentConnection.State PLAN_LIMITED
      Plan limit: waiting on the fixed plan-limit interval, credential kept.
    • STOPPED

      public static final AgentConnection.State STOPPED
      Stopped locally (or no credential).
    • CREDENTIAL_REJECTED

      public static final AgentConnection.State CREDENTIAL_REJECTED
      Terminal: the credential was refused (401) or revoked (4401).
    • UPGRADE_REQUIRED

      public static final AgentConnection.State UPGRADE_REQUIRED
      Terminal: the framework or protocol is too old (426, 4426); credential kept.
    • SUPERSEDED

      public static final AgentConnection.State SUPERSEDED
      Terminal: replaced by another connection with the same credential too often.
    • SERVER_ID_MISMATCH

      public static final AgentConnection.State SERVER_ID_MISMATCH
      Terminal: the gateway's welcome named another server id than the linked one (contract SEMANTICS 16); credential kept. Only a restart or a new login leaves it.
  • Constructor Details

    • State

      private State()
  • Method Details

    • values

      public static AgentConnection.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 AgentConnection.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