public static enum Http2Stream.State extends Enum<Http2Stream.State>
Enum Constant and Description |
---|
CLOSED |
HALF_CLOSED_LOCAL |
HALF_CLOSED_REMOTE |
IDLE |
OPEN |
RESERVED_LOCAL |
RESERVED_REMOTE |
Modifier and Type | Method and Description |
---|---|
boolean |
localSideOpen()
Indicates whether the local side of this stream is open (i.e. the state is either
OPEN or HALF_CLOSED_REMOTE ). |
boolean |
remoteSideOpen()
Indicates whether the remote side of this stream is open (i.e. the state is either
OPEN or HALF_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.
|
public static final Http2Stream.State IDLE
public static final Http2Stream.State RESERVED_LOCAL
public static final Http2Stream.State RESERVED_REMOTE
public static final Http2Stream.State OPEN
public static final Http2Stream.State HALF_CLOSED_LOCAL
public static final Http2Stream.State HALF_CLOSED_REMOTE
public static final Http2Stream.State CLOSED
public static Http2Stream.State[] values()
for (Http2Stream.State c : Http2Stream.State.values()) System.out.println(c);
public static Http2Stream.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean localSideOpen()
OPEN
or HALF_CLOSED_REMOTE
).public boolean remoteSideOpen()
OPEN
or HALF_CLOSED_LOCAL
).Copyright © 2008–2024 The Netty Project. All rights reserved.