Package software.amazon.awssdk.crt.mqtt5
Enum QOS
- All Implemented Interfaces:
Serializable,Comparable<QOS>
MQTT message delivery quality of service.
Enum values match MQTT5 spec encoding values.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA level of service that ensures that the message arrives at the receiver at least once.The message is delivered according to the capabilities of the underlying network.A level of service that ensures that the message arrives at the receiver exactly once. -
Method Summary
Modifier and TypeMethodDescriptionstatic QOSgetEnumValueFromInteger(int value) Creates a Java QualityOfService enum value from a native integer value.intgetValue()static QOSReturns the enum constant of this type with the specified name.static QOS[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AT_MOST_ONCE
The message is delivered according to the capabilities of the underlying network. No response is sent by the receiver and no retry is performed by the sender. The message arrives at the receiver either once or not at all. -
AT_LEAST_ONCE
A level of service that ensures that the message arrives at the receiver at least once. -
EXACTLY_ONCE
A level of service that ensures that the message arrives at the receiver exactly once.
-
-
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 QualityOfService enum value from a native integer value.- Parameters:
value- native integer value for quality of service- Returns:
- a new QualityOfService value
-