Enum ReadyState

java.lang.Object
java.lang.Enum<ReadyState>
io.socket.engineio.server.ReadyState
All Implemented Interfaces:
Serializable, Comparable<ReadyState>, java.lang.constant.Constable

public enum ReadyState extends Enum<ReadyState>
The possible states a connection can be in at any given time. These states also apply to transports.
  • Enum Constant Details

    • OPENING

      public static final ReadyState OPENING
      The connection is opening. No IO operation can be performed.
    • OPEN

      public static final ReadyState OPEN
      The connection is open. IO operations can be performed on it.
    • CLOSING

      public static final ReadyState CLOSING
      The connection is closing. No IO operation can be performed.
    • CLOSED

      public static final ReadyState CLOSED
      The connection is closed. No IO operation can be performed.
  • Constructor Details

    • ReadyState

      private ReadyState()
  • Method Details

    • values

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

      public static ReadyState 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 name
      NullPointerException - if the argument is null