Enum SubackReasonCode
- All Implemented Interfaces:
Serializable,Comparable<SubackReasonCode>,Constable
public enum SubackReasonCode extends Enum<SubackReasonCode>
The SUBACK reason codes for MQTT 5.
MQTT 3.1 and MQTT 3.1.1 supports only:
GRANTED_QOS_0GRANTED_QOS_1GRANTED_QOS_2UNSPECIFIED_ERROR(in the MQTT 3 specification known as FAILURE)
- Since:
- 4.0.0, CE 2019.1
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description GRANTED_QOS_0This is a success code.GRANTED_QOS_1This is a success code.GRANTED_QOS_2This is a success code.IMPLEMENTATION_SPECIFIC_ERRORThis is an unsuccessful code.NOT_AUTHORIZEDThis is an unsuccessful code.PACKET_IDENTIFIER_IN_USEThis is an unsuccessful code.QUOTA_EXCEEDEDThis is an unsuccessful code.SHARED_SUBSCRIPTION_NOT_SUPPORTEDThis is an unsuccessful code.SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTEDThis is an unsuccessful code.TOPIC_FILTER_INVALIDThis is an unsuccessful code.UNSPECIFIED_ERRORThis is an unsuccessful code.WILDCARD_SUBSCRIPTION_NOT_SUPPORTEDThis is an unsuccessful code. -
Method Summary
Modifier and Type Method Description static SubackReasonCodevalueOf(String name)Returns the enum constant of this type with the specified name.static SubackReasonCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GRANTED_QOS_0
This is a success code.- Since:
- 4.0.0, CE 2019.1
-
GRANTED_QOS_1
This is a success code.- Since:
- 4.0.0, CE 2019.1
-
GRANTED_QOS_2
This is a success code.- Since:
- 4.0.0, CE 2019.1
-
UNSPECIFIED_ERROR
This is an unsuccessful code.For an MQTT 3 SUBACK this translates to the return code FAILURE.
- Since:
- 4.0.0, CE 2019.1
-
IMPLEMENTATION_SPECIFIC_ERROR
This is an unsuccessful code.For an MQTT 3 SUBACK this translates to the return code FAILURE.
- Since:
- 4.0.0, CE 2019.1
-
NOT_AUTHORIZED
This is an unsuccessful code.For an MQTT 3 SUBACK this translates to the return code FAILURE.
- Since:
- 4.0.0, CE 2019.1
-
TOPIC_FILTER_INVALID
This is an unsuccessful code.For an MQTT 3 SUBACK this translates to the return code FAILURE.
- Since:
- 4.0.0, CE 2019.1
-
PACKET_IDENTIFIER_IN_USE
This is an unsuccessful code.For an MQTT 3 SUBACK this translates to the return code FAILURE.
- Since:
- 4.0.0, CE 2019.1
-
QUOTA_EXCEEDED
This is an unsuccessful code.For an MQTT 3 SUBACK this translates to the return code FAILURE.
- Since:
- 4.0.0, CE 2019.1
-
SHARED_SUBSCRIPTION_NOT_SUPPORTED
This is an unsuccessful code.For an MQTT 3 SUBACK this translates to the return code FAILURE.
- Since:
- 4.0.0, CE 2019.1
-
SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED
This is an unsuccessful code.For an MQTT 3 SUBACK this translates to the return code FAILURE.
- Since:
- 4.0.0, CE 2019.1
-
WILDCARD_SUBSCRIPTION_NOT_SUPPORTED
This is an unsuccessful code.For an MQTT 3 SUBACK this translates to the return code FAILURE.
- Since:
- 4.0.0, CE 2019.1
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-