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