Package de.smartsquare.starter.mqtt
Class Mqtt5Publisher
-
- All Implemented Interfaces:
public final class Mqtt5PublisherClass with convenience methods for publishing a message on the mqtt broker.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMqtt5Publisher.PublishingOptionsOptions for publishing a message.
-
Constructor Summary
Constructors Constructor Description Mqtt5Publisher(MqttMessageAdapter adapter, Mqtt5Client client)
-
Method Summary
Modifier and Type Method Description final CompletableFuture<Mqtt5PublishResult>publish(String topic, MqttQos qos, Object payload, Mqtt5Publisher.PublishingOptions options)Publishes the given payload on topic with quality of service level qos. final CompletableFuture<Mqtt5PublishResult>publish(String topic, MqttQos qos, Object payload)Publishes the given payload on topic with quality of service level qos. -
-
Constructor Detail
-
Mqtt5Publisher
Mqtt5Publisher(MqttMessageAdapter adapter, Mqtt5Client client)
-
-
Method Detail
-
publish
@JvmOverloads() final CompletableFuture<Mqtt5PublishResult> publish(String topic, MqttQos qos, Object payload, Mqtt5Publisher.PublishingOptions options)
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<Mqtt5PublishResult> 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.
-
-
-
-