Package software.amazon.awssdk.crt.mqtt5
Enum Mqtt5ClientOptions.ExtendedValidationAndFlowControlOptions
java.lang.Object
java.lang.Enum<Mqtt5ClientOptions.ExtendedValidationAndFlowControlOptions>
software.amazon.awssdk.crt.mqtt5.Mqtt5ClientOptions.ExtendedValidationAndFlowControlOptions
- All Implemented Interfaces:
Serializable
,Comparable<Mqtt5ClientOptions.ExtendedValidationAndFlowControlOptions>
- Enclosing class:
- Mqtt5ClientOptions
public static enum Mqtt5ClientOptions.ExtendedValidationAndFlowControlOptions
extends Enum<Mqtt5ClientOptions.ExtendedValidationAndFlowControlOptions>
Additional controls for client behavior with respect to operation validation and flow control; these checks
go beyond the MQTT5 spec to respect limits of specific MQTT brokers.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApply additional client-side validation and operational flow control that respects the default AWS IoT Core limits.Do not do any additional validation or flow control -
Method Summary
Modifier and TypeMethodDescriptiongetEnumValueFromInteger
(int value) Creates a Java ExtendedValidationAndFlowControlOptions enum value from a native integer value.int
getValue()
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
-
NONE
Do not do any additional validation or flow control -
AWS_IOT_CORE_DEFAULTS
public static final Mqtt5ClientOptions.ExtendedValidationAndFlowControlOptions AWS_IOT_CORE_DEFAULTSApply additional client-side validation and operational flow control that respects the default AWS IoT Core limits. Currently applies the following additional validation:- No more than 8 subscriptions per SUBSCRIBE packet
- Topics and topic filters have a maximum of 7 slashes (8 segments), not counting any AWS rules prefix
- Topics must be 256 bytes or less in length
- Client id must be 128 or less bytes in length
- Outbound throughput throttled to 512KB/s
- Outbound publish TPS throttled to 100
-
-
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
public static Mqtt5ClientOptions.ExtendedValidationAndFlowControlOptions getEnumValueFromInteger(int value) Creates a Java ExtendedValidationAndFlowControlOptions enum value from a native integer value.- Parameters:
value
- native integer value for the extended validation and flow control options- Returns:
- a new ExtendedValidationAndFlowControlOptions value
-