- java.lang.Object
-
- java.lang.Enum<Http2Stream.State>
-
- io.netty5.handler.codec.http2.Http2Stream.State
-
- All Implemented Interfaces:
Serializable
,Comparable<Http2Stream.State>
- Enclosing interface:
- Http2Stream
public static enum Http2Stream.State extends Enum<Http2Stream.State>
The allowed states of an HTTP2 stream.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSED
HALF_CLOSED_LOCAL
HALF_CLOSED_REMOTE
IDLE
OPEN
RESERVED_LOCAL
RESERVED_REMOTE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
localSideOpen()
Indicates whether the local side of this stream is open (i.e. the state is eitherOPEN
orHALF_CLOSED_REMOTE
).boolean
remoteSideOpen()
Indicates whether the remote side of this stream is open (i.e. the state is eitherOPEN
orHALF_CLOSED_LOCAL
).static Http2Stream.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static Http2Stream.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE
public static final Http2Stream.State IDLE
-
RESERVED_LOCAL
public static final Http2Stream.State RESERVED_LOCAL
-
RESERVED_REMOTE
public static final Http2Stream.State RESERVED_REMOTE
-
OPEN
public static final Http2Stream.State OPEN
-
HALF_CLOSED_LOCAL
public static final Http2Stream.State HALF_CLOSED_LOCAL
-
HALF_CLOSED_REMOTE
public static final Http2Stream.State HALF_CLOSED_REMOTE
-
CLOSED
public static final Http2Stream.State CLOSED
-
-
Method Detail
-
values
public static Http2Stream.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Http2Stream.State c : Http2Stream.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Http2Stream.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 nameNullPointerException
- if the argument is null
-
localSideOpen
public boolean localSideOpen()
Indicates whether the local side of this stream is open (i.e. the state is eitherOPEN
orHALF_CLOSED_REMOTE
).
-
remoteSideOpen
public boolean remoteSideOpen()
Indicates whether the remote side of this stream is open (i.e. the state is eitherOPEN
orHALF_CLOSED_LOCAL
).
-
-