Enum PubcompReasonCode
- java.lang.Object
-
- java.lang.Enum<PubcompReasonCode>
-
- com.hivemq.extension.sdk.api.packets.pubcomp.PubcompReasonCode
-
- All Implemented Interfaces:
Serializable
,Comparable<PubcompReasonCode>
public enum PubcompReasonCode extends Enum<PubcompReasonCode>
MQTT 5 Reason codes for PUBCOMP.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 PubcompReasonCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static PubcompReasonCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final PubcompReasonCode SUCCESS
- Since:
- 4.3.0, CE 2020.1
-
PACKET_IDENTIFIER_NOT_FOUND
public static final PubcompReasonCode PACKET_IDENTIFIER_NOT_FOUND
- Since:
- 4.3.0, CE 2020.1
-
-
Method Detail
-
values
public static PubcompReasonCode[] 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 (PubcompReasonCode c : PubcompReasonCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PubcompReasonCode 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
-
-