public enum Mqtt3SubAckReturnCode extends Enum<Mqtt3SubAckReturnCode> implements Mqtt3ReturnCode
MQTT 3 SubAck message.| Enum Constant and Description |
|---|
FAILURE
The subscription failed.
|
SUCCESS_MAXIMUM_QOS_0
The subscription is accepted and the maximum QoS sent will be QoS 0 (this might be a lower QoS than was
requested).
|
SUCCESS_MAXIMUM_QOS_1
The subscription is accepted and the maximum QoS sent will be QoS 1 (this might be a lower QoS than was
requested).
|
SUCCESS_MAXIMUM_QOS_2
The subscription is accepted and the maximum QoS sent will be QoS 2.
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable Mqtt3SubAckReturnCode |
fromCode(int code)
Returns the SubAck Return Code belonging to the given byte code.
|
int |
getCode() |
boolean |
isError() |
static Mqtt3SubAckReturnCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mqtt3SubAckReturnCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mqtt3SubAckReturnCode SUCCESS_MAXIMUM_QOS_0
public static final Mqtt3SubAckReturnCode SUCCESS_MAXIMUM_QOS_1
public static final Mqtt3SubAckReturnCode SUCCESS_MAXIMUM_QOS_2
public static final Mqtt3SubAckReturnCode FAILURE
public static Mqtt3SubAckReturnCode[] values()
for (Mqtt3SubAckReturnCode c : Mqtt3SubAckReturnCode.values()) System.out.println(c);
public static Mqtt3SubAckReturnCode 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 Mqtt3ReturnCodepublic boolean isError()
isError in interface Mqtt3ReturnCode@Nullable public static @Nullable Mqtt3SubAckReturnCode fromCode(int code)
code - the byte code.null if the byte code is not a
valid SubAck Return Code.