public enum Mqtt5SubAckReasonCode extends Enum<Mqtt5SubAckReasonCode> implements Mqtt5ReasonCode
MQTT 5 SubAck message.| Enum Constant and Description |
|---|
GRANTED_QOS_0
The subscription is accepted and the maximum QoS sent will be QoS 0 (this might be a lower QoS than was
requested).
|
GRANTED_QOS_1
The subscription is accepted and the maximum QoS sent will be QoS 1 (this might be a lower QoS than was
requested).
|
GRANTED_QOS_2
The subscription is accepted and the maximum QoS sent will be QoS 2.
|
IMPLEMENTATION_SPECIFIC_ERROR
The SUBSCRIBE packet is valid but is not accepted by the server.
|
NOT_AUTHORIZED
The client is not authorized to make the subscription.
|
PACKET_IDENTIFIER_IN_USE
The specified packet identifier is already in use.
|
QUOTA_EXCEEDED
An implementation or administrative imposed limit has been exceeded.
|
SHARED_SUBSCRIPTIONS_NOT_SUPPORTED
The server does not support shared subscriptions (for this client).
|
SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED
The server does not support subscription identifiers (for this client).
|
TOPIC_FILTER_INVALID
The topic filter is formed correctly but is not accepted by the server (for this client).
|
UNSPECIFIED_ERROR
The server either does not want to reveal the reason for the failure or none of the other reason codes apply.
|
WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED
The server does not support wildcard subscriptions (for this client).
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable Mqtt5SubAckReasonCode |
fromCode(int code)
Returns the SubAck Reason Code belonging to the given byte code.
|
int |
getCode() |
static Mqtt5SubAckReasonCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mqtt5SubAckReasonCode[] |
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, valueOfcanBeSentByClient, canBeSentByServer, canBeSetByUser, isErrorpublic static final Mqtt5SubAckReasonCode GRANTED_QOS_0
public static final Mqtt5SubAckReasonCode GRANTED_QOS_1
public static final Mqtt5SubAckReasonCode GRANTED_QOS_2
public static final Mqtt5SubAckReasonCode UNSPECIFIED_ERROR
public static final Mqtt5SubAckReasonCode IMPLEMENTATION_SPECIFIC_ERROR
public static final Mqtt5SubAckReasonCode NOT_AUTHORIZED
public static final Mqtt5SubAckReasonCode TOPIC_FILTER_INVALID
public static final Mqtt5SubAckReasonCode PACKET_IDENTIFIER_IN_USE
public static final Mqtt5SubAckReasonCode QUOTA_EXCEEDED
public static final Mqtt5SubAckReasonCode SHARED_SUBSCRIPTIONS_NOT_SUPPORTED
public static final Mqtt5SubAckReasonCode SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED
public static final Mqtt5SubAckReasonCode WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED
public static Mqtt5SubAckReasonCode[] values()
for (Mqtt5SubAckReasonCode c : Mqtt5SubAckReasonCode.values()) System.out.println(c);
public static Mqtt5SubAckReasonCode 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 Mqtt5SubAckReasonCode fromCode(int code)
code - the byte code.null if the byte code is not a
valid SubAck Reason Code.