Package software.amazon.awssdk.crt.mqtt5
Enum TopicAliasingOptions.InboundTopicAliasBehaviorType
java.lang.Object
java.lang.Enum<TopicAliasingOptions.InboundTopicAliasBehaviorType>
software.amazon.awssdk.crt.mqtt5.TopicAliasingOptions.InboundTopicAliasBehaviorType
- All Implemented Interfaces:
Serializable,Comparable<TopicAliasingOptions.InboundTopicAliasBehaviorType>
- Enclosing class:
- TopicAliasingOptions
public static enum TopicAliasingOptions.InboundTopicAliasBehaviorType
extends Enum<TopicAliasingOptions.InboundTopicAliasBehaviorType>
An enumeration that controls whether or not the client allows the broker to send publishes that use topic
aliasing.
Topic alias behavior is described in https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901113
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetEnumValueFromInteger(int value) Creates a Java InboundTopicAliasBehaviorType enum value from a native integer value.intgetValue()Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Default
Maps to Disabled. This keeps the client from being broken (by default) if the broker topic aliasing implementation has a problem. -
Enabled
Allow the server to send PUBLISH packets to the client that use topic aliasing -
Disabled
Forbid the server from sending PUBLISH packets to the client that use topic aliasing
-
-
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 InboundTopicAliasBehaviorType enum value from a native integer value.- Parameters:
value- native integer value for the InboundTopicAliasBehaviorType value- Returns:
- a new InboundTopicAliasBehaviorType value
-