Package de.smartsquare.starter.mqtt
Class Mqtt3Publisher
-
- All Implemented Interfaces:
public final class Mqtt3PublisherClass with convenience methods for publishing a message on the mqtt broker.
-
-
Constructor Summary
Constructors Constructor Description Mqtt3Publisher(MqttMessageAdapter adapter, Mqtt3Client client)
-
Method Summary
Modifier and Type Method Description final CompletableFuture<Mqtt3Publish>publish(String topic, MqttQos qos, Object payload, Boolean retain)Publishes the given payload on topic with quality of service level qos. final CompletableFuture<Mqtt3Publish>publish(String topic, MqttQos qos, Object payload)Publishes the given payload on topic with quality of service level qos. -
-
Constructor Detail
-
Mqtt3Publisher
Mqtt3Publisher(MqttMessageAdapter adapter, Mqtt3Client client)
-
-
Method Detail
-
publish
@JvmOverloads() final CompletableFuture<Mqtt3Publish> publish(String topic, MqttQos qos, Object payload, Boolean retain)
Publishes the given payload on topic with quality of service level qos. Returns a CompletableFuture that is completed once the broker has accepted the message.
-
publish
@JvmOverloads() final CompletableFuture<Mqtt3Publish> publish(String topic, MqttQos qos, Object payload)
Publishes the given payload on topic with quality of service level qos. Returns a CompletableFuture that is completed once the broker has accepted the message.
-
-
-
-