Enum Class StreamOutcome.Kind

java.lang.Object
java.lang.Enum<StreamOutcome.Kind>
com.jsgalactic.axiom.http.StreamOutcome.Kind
All Implemented Interfaces:
Serializable, Comparable<StreamOutcome.Kind>, Constable
Enclosing class:
StreamOutcome

public static enum StreamOutcome.Kind extends Enum<StreamOutcome.Kind>
How a stream ended.
  • Enum Constant Details

    • COMPLETED

      public static final StreamOutcome.Kind COMPLETED
      The body returned and the stream was not aborted; the client receives a final chunk.
    • CLIENT_DISCONNECTED

      public static final StreamOutcome.Kind CLIENT_DISCONNECTED
      The client left or stopped reading.
    • LIMIT_EXCEEDED

      public static final StreamOutcome.Kind LIMIT_EXCEEDED
      The body tried to write more than its byte cap.
    • TIMEOUT

      public static final StreamOutcome.Kind TIMEOUT
      The request deadline, or the stream's own lifetime, passed.
    • SHUTDOWN

      public static final StreamOutcome.Kind SHUTDOWN
      The listener was closing and the grace period ran out, or the request was cancelled.
    • FAILED

      public static final StreamOutcome.Kind FAILED
      The body threw an exception that was not an abort.
  • Method Details

    • values

      public static StreamOutcome.Kind[] 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 StreamOutcome.Kind 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