public static enum Http2Stream.State extends java.lang.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()
指示此流的本地端是否打开(即状态是
OPEN 或
HALF_CLOSED_REMOTE )。
|
boolean |
remoteSideOpen()
指示此流的远程端是否已打开(即状态为
OPEN 或
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
- 如果参数为null
public boolean localSideOpen()
OPEN
或
HALF_CLOSED_REMOTE
)。
public boolean remoteSideOpen()
OPEN
或
HALF_CLOSED_LOCAL
)。
Copyright © 2008–2018 The Netty Project. All rights reserved.