public enum Mqtt5PubRelReasonCode extends Enum<Mqtt5PubRelReasonCode> implements Mqtt5ReasonCode
MQTT 5 PubRel message
.Enum Constant and Description |
---|
PACKET_IDENTIFIER_NOT_FOUND
The packet identifier is not known.
|
SUCCESS
Message released.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBeSentByClient() |
static @Nullable Mqtt5PubRelReasonCode |
fromCode(int code)
Returns the PubRel Reason Code belonging to the given byte code.
|
int |
getCode() |
static Mqtt5PubRelReasonCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mqtt5PubRelReasonCode[] |
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, valueOf
canBeSentByServer, canBeSetByUser, isError
public static final Mqtt5PubRelReasonCode SUCCESS
public static final Mqtt5PubRelReasonCode PACKET_IDENTIFIER_NOT_FOUND
public static Mqtt5PubRelReasonCode[] values()
for (Mqtt5PubRelReasonCode c : Mqtt5PubRelReasonCode.values()) System.out.println(c);
public static Mqtt5PubRelReasonCode 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 Mqtt5PubRelReasonCode fromCode(int code)
code
- the byte code.null
if the byte code is not a
valid PubRel Reason Code.public boolean canBeSentByClient()
canBeSentByClient
in interface Mqtt5ReasonCode