@Generated(value="jsii-pacmak/1.78.1 (build 878761e)", date="2023-04-17T22:38:13.262Z") @Stability(value=Experimental) public enum MqttQualityOfService extends Enum<MqttQualityOfService>
Example:
TopicRule.Builder.create(this, "TopicRule")
.sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'"))
.actions(List.of(
IotRepublishMqttAction.Builder.create("${topic()}/republish")
.qualityOfService(MqttQualityOfService.AT_LEAST_ONCE)
.build()))
.build();
| Enum Constant and Description |
|---|
AT_LEAST_ONCE
(experimental) QoS level 1.
|
ZERO_OR_MORE_TIMES
(experimental) QoS level 0.
|
| Modifier and Type | Method and Description |
|---|---|
static MqttQualityOfService |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MqttQualityOfService[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final MqttQualityOfService ZERO_OR_MORE_TIMES
Sent zero or more times. This level should be used for messages that are sent over reliable communication links or that can be missed without a problem.
@Stability(value=Experimental) public static final MqttQualityOfService AT_LEAST_ONCE
Sent at least one time, and then repeatedly until a PUBACK response is received. The message is not considered complete until the sender receives a PUBACK response to indicate successful delivery.
public static MqttQualityOfService[] values()
for (MqttQualityOfService c : MqttQualityOfService.values()) System.out.println(c);
public static MqttQualityOfService valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2023. All rights reserved.