public enum MqttConnectReturnCode extends java.lang.Enum<MqttConnectReturnCode>
Modifier and Type | Method and Description |
---|---|
byte |
byteValue() |
static MqttConnectReturnCode |
valueOf(byte b) |
static MqttConnectReturnCode |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static MqttConnectReturnCode[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
public static final MqttConnectReturnCode CONNECTION_ACCEPTED
public static final MqttConnectReturnCode CONNECTION_REFUSED_UNACCEPTABLE_PROTOCOL_VERSION
public static final MqttConnectReturnCode CONNECTION_REFUSED_IDENTIFIER_REJECTED
public static final MqttConnectReturnCode CONNECTION_REFUSED_SERVER_UNAVAILABLE
public static final MqttConnectReturnCode CONNECTION_REFUSED_BAD_USER_NAME_OR_PASSWORD
public static final MqttConnectReturnCode CONNECTION_REFUSED_NOT_AUTHORIZED
public static MqttConnectReturnCode[] values()
for (MqttConnectReturnCode c : MqttConnectReturnCode.values())
System.out.println(c);
public static MqttConnectReturnCode valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
java.lang.NullPointerException
- 如果参数为null
public byte byteValue()
public static MqttConnectReturnCode valueOf(byte b)
Copyright © 2008–2018 The Netty Project. All rights reserved.