Enum PubrelReasonCode
- java.lang.Object
-
- java.lang.Enum<PubrelReasonCode>
-
- com.hivemq.extension.sdk.api.packets.pubrel.PubrelReasonCode
-
- All Implemented Interfaces:
Serializable
,Comparable<PubrelReasonCode>
public enum PubrelReasonCode extends Enum<PubrelReasonCode>
MQTT 5 Reason codes for PUBREL.MQTT 3 does not support reason codes for the above mentioned MQTT packet.
- Since:
- 4.3.0, CE 2020.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PACKET_IDENTIFIER_NOT_FOUND
SUCCESS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PubrelReasonCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static PubrelReasonCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final PubrelReasonCode SUCCESS
- Since:
- 4.3.0, CE 2020.1
-
PACKET_IDENTIFIER_NOT_FOUND
public static final PubrelReasonCode PACKET_IDENTIFIER_NOT_FOUND
- Since:
- 4.3.0, CE 2020.1
-
-
Method Detail
-
values
public static PubrelReasonCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PubrelReasonCode c : PubrelReasonCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PubrelReasonCode valueOf(String name)
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
-
-