Enum UnsubAckPacket.UnsubAckReasonCode
java.lang.Object
java.lang.Enum<UnsubAckPacket.UnsubAckReasonCode>
software.amazon.awssdk.crt.mqtt5.packets.UnsubAckPacket.UnsubAckReasonCode
- All Implemented Interfaces:
Serializable
,Comparable<UnsubAckPacket.UnsubAckReasonCode>
- Enclosing class:
- UnsubAckPacket
public static enum UnsubAckPacket.UnsubAckReasonCode
extends Enum<UnsubAckPacket.UnsubAckReasonCode>
Reason codes inside UnsubAckPacket payloads that specify the results for each topic filter in the associated
UnsubscribePacket.
Enum values match MQTT5 spec encoding values.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturned when the topic filter was valid but the server does not accept an unsubscribe for it.Returned when the topic filter did not match one of the client's existing topic filters on the server.Returned when the client was not authorized to unsubscribe from that topic filter on the server.Returned when the packet identifier was already in use on the server.Returned when the unsubscribe was successful and the client is no longer subscribed to the topic filter on the server.Returned when the topic filter was correctly formed but is not allowed for the client on the server.Returned when the unsubscribe of the topic filter was not accepted and the server does not want to specify a reason or none of the other reason codes apply. -
Method Summary
Modifier and TypeMethodDescriptiongetEnumValueFromInteger
(int value) Creates a Java UnsubAckReasonCode enum value from a native integer value.int
getValue()
Returns the enum constant of this type with the specified name.static UnsubAckPacket.UnsubAckReasonCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
Returned when the unsubscribe was successful and the client is no longer subscribed to the topic filter on the server. -
NO_SUBSCRIPTION_EXISTED
Returned when the topic filter did not match one of the client's existing topic filters on the server. -
UNSPECIFIED_ERROR
Returned when the unsubscribe of the topic filter was not accepted and the server does not want to specify a reason or none of the other reason codes apply. -
IMPLEMENTATION_SPECIFIC_ERROR
Returned when the topic filter was valid but the server does not accept an unsubscribe for it. -
NOT_AUTHORIZED
Returned when the client was not authorized to unsubscribe from that topic filter on the server. -
TOPIC_FILTER_INVALID
Returned when the topic filter was correctly formed but is not allowed for the client on the server. -
PACKET_IDENTIFIER_IN_USE
Returned when the packet identifier was already in use on the server.
-
-
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
-
getValue
public int getValue()- Returns:
- The native enum integer value associated with this Java enum value
-
getEnumValueFromInteger
Creates a Java UnsubAckReasonCode enum value from a native integer value.- Parameters:
value
- native integer value for UnsubAckReasonCode- Returns:
- a new UnsubAckReasonCode value
-