public enum Mqtt5PubCompReasonCode extends Enum<Mqtt5PubCompReasonCode> implements Mqtt5ReasonCode
MQTT 5 PubComp message.| Enum Constant and Description |
|---|
PACKET_IDENTIFIER_NOT_FOUND
The packet identifier is not known.
|
SUCCESS
Packet identifier released.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeSentByClient() |
static @Nullable Mqtt5PubCompReasonCode |
fromCode(int code)
Returns the PubComp Reason Code belonging to the given byte code.
|
int |
getCode() |
static Mqtt5PubCompReasonCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mqtt5PubCompReasonCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcanBeSentByServer, canBeSetByUser, isErrorpublic static final Mqtt5PubCompReasonCode SUCCESS
public static final Mqtt5PubCompReasonCode PACKET_IDENTIFIER_NOT_FOUND
public static Mqtt5PubCompReasonCode[] values()
for (Mqtt5PubCompReasonCode c : Mqtt5PubCompReasonCode.values()) System.out.println(c);
public static Mqtt5PubCompReasonCode 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 int getCode()
getCode in interface Mqtt5ReasonCode@Nullable public static @Nullable Mqtt5PubCompReasonCode fromCode(int code)
code - the byte code.null if the byte code is not a
valid PubComp Reason Code.public boolean canBeSentByClient()
canBeSentByClient in interface Mqtt5ReasonCode