Enum ReadState.State

java.lang.Object
java.lang.Enum<ReadState.State>
org.eclipse.jetty.websocket.common.io.ReadState.State
All Implemented Interfaces:
Serializable, Comparable<ReadState.State>
Enclosing class:
ReadState

private static enum ReadState.State extends Enum<ReadState.State>
  • Enum Constant Details

    • READING

      public static final ReadState.State READING
      Reading from the connection.
    • SUSPENDING

      public static final ReadState.State SUSPENDING
      Suspend has been requested but not yet taken effect.
    • SUSPENDED

      public static final ReadState.State SUSPENDED
      Suspended, won't read from the connection until resumed.
    • DISCARDING

      public static final ReadState.State DISCARDING
      Reading from connection and discarding bytes until EOF.
    • EOF

      public static final ReadState.State EOF
      Won't read from the connection (terminal state).
  • Constructor Details

    • State

      private State()
  • Method Details

    • values

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