public static enum Http2Exception.ShutdownHint extends java.lang.Enum<Http2Exception.ShutdownHint>
Enum Constant and Description |
---|
GRACEFUL_SHUTDOWN
尝试执行“优雅”关机。
|
HARD_SHUTDOWN
发送
GOAWAY 后立即关闭频道。
|
NO_SHUTDOWN
不要关闭底层通道。
|
Modifier and Type | Method and Description |
---|---|
static Http2Exception.ShutdownHint |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static Http2Exception.ShutdownHint[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
public static final Http2Exception.ShutdownHint NO_SHUTDOWN
public static final Http2Exception.ShutdownHint GRACEFUL_SHUTDOWN
public static final Http2Exception.ShutdownHint HARD_SHUTDOWN
GOAWAY
后立即关闭频道。
public static Http2Exception.ShutdownHint[] values()
for (Http2Exception.ShutdownHint c : Http2Exception.ShutdownHint.values())
System.out.println(c);
public static Http2Exception.ShutdownHint valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
java.lang.NullPointerException
- 如果参数为null
Copyright © 2008–2018 The Netty Project. All rights reserved.