Interface Mqtt5IncomingQos1Interceptor
public interface Mqtt5IncomingQos1Interceptor
Interface for interceptors of the QoS 1 control flow for incoming Publish messages.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidonPublish(@NotNull Mqtt5ClientConfig clientConfig, @NotNull Mqtt5Publish publish, @NotNull Mqtt5PubAckBuilder pubAckBuilder) Called when a server sent a Publish message with QoS 1.
-
Method Details
-
onPublish
void onPublish(@NotNull @NotNull Mqtt5ClientConfig clientConfig, @NotNull @NotNull Mqtt5Publish publish, @NotNull @NotNull Mqtt5PubAckBuilder pubAckBuilder) Called when a server sent a Publish message with QoS 1.This method must not block and just add some properties to the outgoing PubAck message.
- Parameters:
clientConfig- the config of the client.publish- the Publish message with QoS 1 sent by the server.pubAckBuilder- the builder for the outgoing PubAck message.
-