public enum MqttPubRecReasonCode extends Enum<MqttPubRecReasonCode> implements MqttReasonCode
Enum Constant and Description |
---|
IMPLEMENTATION_SPECIFIC_ERROR |
NO_MATCHING_SUBSCRIBERS |
NOT_AUTHORIZED |
PACKET_IDENTIFIER_IN_USE |
PAYLOAD_FORMAT_INVALID |
QUOTA_EXCEEDED |
SUCCESS |
TOPIC_NAME_INVALID |
UNSPECIFIED_ERROR |
Modifier and Type | Method and Description |
---|---|
boolean |
isError() |
byte |
value() |
static MqttPubRecReasonCode |
valueOf(byte b) |
static MqttPubRecReasonCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MqttPubRecReasonCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MqttPubRecReasonCode SUCCESS
public static final MqttPubRecReasonCode NO_MATCHING_SUBSCRIBERS
public static final MqttPubRecReasonCode UNSPECIFIED_ERROR
public static final MqttPubRecReasonCode IMPLEMENTATION_SPECIFIC_ERROR
public static final MqttPubRecReasonCode NOT_AUTHORIZED
public static final MqttPubRecReasonCode TOPIC_NAME_INVALID
public static final MqttPubRecReasonCode PACKET_IDENTIFIER_IN_USE
public static final MqttPubRecReasonCode QUOTA_EXCEEDED
public static final MqttPubRecReasonCode PAYLOAD_FORMAT_INVALID
public static MqttPubRecReasonCode[] values()
for (MqttPubRecReasonCode c : MqttPubRecReasonCode.values()) System.out.println(c);
public static MqttPubRecReasonCode 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 byte value()
value
in interface MqttReasonCode
public boolean isError()
isError
in interface MqttReasonCode
public static MqttPubRecReasonCode valueOf(byte b)
Copyright © 2024 Eclipse. All rights reserved.