Enum Class SendState
- All Implemented Interfaces:
Serializable,Comparable<SendState>,Constable
The states of the sending part of a stream (RFC 9000 section 3.1, figure 2).
READY --first STREAM / STREAM_DATA_BLOCKED sent--> SEND --STREAM with FIN sent--> DATA_SENT
| | |
+----------------- reset by the application ------+--------------------------------+
| |
v all data acknowledged
RESET_SENT --RESET_STREAM acknowledged--> RESET_RECVD v
DATA_RECVD
The terminal states DATA_RECVD and RESET_RECVD are reached when the stream's
send state is released: StreamsState then forgets the stream, after reporting StreamEvent.Finished for DATA_RECVD.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEvery byte and the FIN were acknowledged.The FIN has been sent; only retransmissions remain.Open, but no STREAM or STREAM_DATA_BLOCKED frame has been sent yet.The peer acknowledged RESET_STREAM.The application reset the stream and RESET_STREAM was queued.Sending data; the application may still write, or has finished but the FIN is unsent. -
Method Summary
-
Enum Constant Details
-
READY
Open, but no STREAM or STREAM_DATA_BLOCKED frame has been sent yet. -
SEND
Sending data; the application may still write, or has finished but the FIN is unsent. -
DATA_SENT
The FIN has been sent; only retransmissions remain. -
DATA_RECVD
Every byte and the FIN were acknowledged. -
RESET_SENT
The application reset the stream and RESET_STREAM was queued. -
RESET_RECVD
The peer acknowledged RESET_STREAM.
-
-
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
-