public static enum ChannelContext.CloseCode extends Enum<ChannelContext.CloseCode>
Enum Constant and Description |
---|
CHANNEL_NOT_OPEN
通道未打开
|
CLIENT_CONNECTION_FAIL
连接失败
|
CLOSED_BY_PEER
对方关闭了连接
|
DECODE_ERROR
解码异常
|
HEARTBEAT_TIMEOUT
心跳超时
|
INIT_STATUS
初始值
|
NO_CODE
没有提供原因码
|
OTHER_ERROR
其它异常
|
READ_COUNT_IS_NEGATIVE
读到的数据长度小于-1
|
READ_COUNT_IS_ZERO
读到的数据长度是0
|
READ_ERROR
读异常
|
SSL_DECRYPT_ERROR
SSL解密时发生异常
|
SSL_ENCRYPTION_ERROR
SSL加密时发生异常
|
SSL_ERROR_ON_HANDSHAKE
SSL握手时发生异常
|
SSL_SESSION_CLOSED
SSL session关闭了
|
USER_CODE_0
供用户使用
|
USER_CODE_1
供用户使用
|
USER_CODE_10
供用户使用
|
USER_CODE_2
供用户使用
|
USER_CODE_3
供用户使用
|
USER_CODE_4
供用户使用
|
USER_CODE_5
供用户使用
|
USER_CODE_6
供用户使用
|
USER_CODE_7
供用户使用
|
USER_CODE_8
供用户使用
|
USER_CODE_9
供用户使用
|
WRITE_COUNT_IS_NEGATIVE
写数据长度小于0
|
WRITER_ERROR
写异常
|
Modifier and Type | Method and Description |
---|---|
static ChannelContext.CloseCode |
from(Byte value) |
Byte |
getValue() |
void |
setValue(Byte value) |
static ChannelContext.CloseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChannelContext.CloseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelContext.CloseCode NO_CODE
public static final ChannelContext.CloseCode READ_ERROR
public static final ChannelContext.CloseCode WRITER_ERROR
public static final ChannelContext.CloseCode DECODE_ERROR
public static final ChannelContext.CloseCode CHANNEL_NOT_OPEN
public static final ChannelContext.CloseCode READ_COUNT_IS_ZERO
public static final ChannelContext.CloseCode CLOSED_BY_PEER
public static final ChannelContext.CloseCode READ_COUNT_IS_NEGATIVE
public static final ChannelContext.CloseCode WRITE_COUNT_IS_NEGATIVE
public static final ChannelContext.CloseCode HEARTBEAT_TIMEOUT
public static final ChannelContext.CloseCode CLIENT_CONNECTION_FAIL
public static final ChannelContext.CloseCode SSL_ERROR_ON_HANDSHAKE
public static final ChannelContext.CloseCode SSL_SESSION_CLOSED
public static final ChannelContext.CloseCode SSL_ENCRYPTION_ERROR
public static final ChannelContext.CloseCode SSL_DECRYPT_ERROR
public static final ChannelContext.CloseCode USER_CODE_0
public static final ChannelContext.CloseCode USER_CODE_1
public static final ChannelContext.CloseCode USER_CODE_2
public static final ChannelContext.CloseCode USER_CODE_3
public static final ChannelContext.CloseCode USER_CODE_4
public static final ChannelContext.CloseCode USER_CODE_5
public static final ChannelContext.CloseCode USER_CODE_6
public static final ChannelContext.CloseCode USER_CODE_7
public static final ChannelContext.CloseCode USER_CODE_8
public static final ChannelContext.CloseCode USER_CODE_9
public static final ChannelContext.CloseCode USER_CODE_10
public static final ChannelContext.CloseCode INIT_STATUS
public static final ChannelContext.CloseCode OTHER_ERROR
public static ChannelContext.CloseCode[] values()
for (ChannelContext.CloseCode c : ChannelContext.CloseCode.values()) System.out.println(c);
public static ChannelContext.CloseCode 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 static ChannelContext.CloseCode from(Byte value)
public Byte getValue()
public void setValue(Byte value)
Copyright © 2021. All rights reserved.