Package com.jsgalactic.axiom.http
Enum Class StreamOutcome.Kind
- All Implemented Interfaces:
Serializable,Comparable<StreamOutcome.Kind>,Constable
- Enclosing class:
StreamOutcome
How a stream ended.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe client left or stopped reading.The body returned and the stream was not aborted; the client receives a final chunk.The body threw an exception that was not an abort.The body tried to write more than its byte cap.The listener was closing and the grace period ran out, or the request was cancelled.The request deadline, or the stream's own lifetime, passed. -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamOutcome.KindReturns the enum constant of this class with the specified name.static StreamOutcome.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPLETED
The body returned and the stream was not aborted; the client receives a final chunk. -
CLIENT_DISCONNECTED
The client left or stopped reading. -
LIMIT_EXCEEDED
The body tried to write more than its byte cap. -
TIMEOUT
The request deadline, or the stream's own lifetime, passed. -
SHUTDOWN
The listener was closing and the grace period ran out, or the request was cancelled. -
FAILED
The body threw an exception that was not an abort.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-