public static enum Http2Stream.State extends java.lang.Enum<Http2Stream.State>
枚举常量和说明 |
---|
CLOSED |
HALF_CLOSED_LOCAL |
HALF_CLOSED_REMOTE |
IDLE |
OPEN |
RESERVED_LOCAL |
RESERVED_REMOTE |
限定符和类型 | 方法和说明 |
---|---|
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(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Http2Stream.State[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public boolean localSideOpen()
OPEN
or HALF_CLOSED_REMOTE
).public boolean remoteSideOpen()
OPEN
or HALF_CLOSED_LOCAL
).