public static enum MqttReasonCodes.UnsubAck extends java.lang.Enum<MqttReasonCodes.UnsubAck>
枚举常量和说明 |
---|
IMPLEMENTATION_SPECIFIC_ERROR |
NO_SUBSCRIPTION_EXISTED |
NOT_AUTHORIZED |
PACKET_IDENTIFIER_IN_USE |
SUCCESS |
TOPIC_FILTER_INVALID |
UNSPECIFIED_ERROR |
限定符和类型 | 方法和说明 |
---|---|
byte |
byteValue() |
static MqttReasonCodes.UnsubAck |
valueOf(byte b) |
static MqttReasonCodes.UnsubAck |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static MqttReasonCodes.UnsubAck[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MqttReasonCodes.UnsubAck SUCCESS
public static final MqttReasonCodes.UnsubAck NO_SUBSCRIPTION_EXISTED
public static final MqttReasonCodes.UnsubAck UNSPECIFIED_ERROR
public static final MqttReasonCodes.UnsubAck IMPLEMENTATION_SPECIFIC_ERROR
public static final MqttReasonCodes.UnsubAck NOT_AUTHORIZED
public static final MqttReasonCodes.UnsubAck TOPIC_FILTER_INVALID
public static final MqttReasonCodes.UnsubAck PACKET_IDENTIFIER_IN_USE
public static MqttReasonCodes.UnsubAck[] values()
for (MqttReasonCodes.UnsubAck c : MqttReasonCodes.UnsubAck.values()) System.out.println(c);
public static MqttReasonCodes.UnsubAck valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public byte byteValue()
public static MqttReasonCodes.UnsubAck valueOf(byte b)
b
- the number to decode.