Enum Class RecvState
- All Implemented Interfaces:
Serializable,Comparable<RecvState>,Constable
The states of the receiving part of a stream (RFC 9000 section 3.2, figure 3).
RECV --STREAM with FIN--> SIZE_KNOWN --all data received--> DATA_RECVD --app read all--> DATA_READ
| | |
+-------- RESET_STREAM ----+--------------------------------+--> RESET_RECVD --app read reset--> RESET_READ
The terminal states DATA_READ and RESET_READ are reached when the
application has seen the end of the stream or its reset: StreamsState then forgets the
stream.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe application has read all the data.Every byte up to the final size has arrived.Receiving data; the final size is unknown.The application has seen the reset.The peer reset the stream.A frame with the FIN bit fixed the final size; some data is still missing. -
Method Summary
-
Enum Constant Details
-
RECV
Receiving data; the final size is unknown. -
SIZE_KNOWN
A frame with the FIN bit fixed the final size; some data is still missing. -
DATA_RECVD
Every byte up to the final size has arrived. -
DATA_READ
The application has read all the data. -
RESET_RECVD
The peer reset the stream. -
RESET_READ
The application has seen the reset.
-
-
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
-