Enum State

java.lang.Object
java.lang.Enum<State>
org.drasyl.handler.connection.State
All Implemented Interfaces:
Serializable, Comparable<State>, java.lang.constant.Constable

public enum State extends Enum<State>
Connection states.
  • Enum Constant Details

    • LISTEN

      public static final State LISTEN
    • SYN_SENT

      public static final State SYN_SENT
    • SYN_RECEIVED

      public static final State SYN_RECEIVED
    • ESTABLISHED

      public static final State ESTABLISHED
    • FIN_WAIT_1

      public static final State FIN_WAIT_1
    • FIN_WAIT_2

      public static final State FIN_WAIT_2
    • CLOSE_WAIT

      public static final State CLOSE_WAIT
    • CLOSING

      public static final State CLOSING
    • LAST_ACK

      public static final State LAST_ACK
    • TIME_WAIT

      public static final State TIME_WAIT
    • CLOSED

      public static final State CLOSED
  • Method Details

    • values

      public static State[] 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 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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<State>