| Package | Description |
|---|---|
| software.amazon.awssdk.crt.mqtt |
| Modifier and Type | Method and Description |
|---|---|
MqttMessage |
MqttConnectionConfig.getWillMessage()
Queries the last will and testament message to be delivered to a topic when a connection disconnects
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Integer> |
MqttClientConnection.publish(MqttMessage message)
Publishes a message to a topic.
|
CompletableFuture<Integer> |
MqttClientConnection.publish(MqttMessage message,
QualityOfService qos,
boolean retain)
Deprecated.
|
void |
MqttConnectionConfig.setWillMessage(MqttMessage willMessage)
Configures the last will and testament message to be delivered to a topic when a connection disconnects
|
| Modifier and Type | Method and Description |
|---|---|
void |
MqttClientConnection.onMessage(java.util.function.Consumer<MqttMessage> handler)
Sets a handler to be invoked whenever a message arrives, subscription or not
|
CompletableFuture<Integer> |
MqttClientConnection.subscribe(String topic,
QualityOfService qos,
java.util.function.Consumer<MqttMessage> handler)
Subscribes to a topic
|
Copyright © 2021. All rights reserved.