public interface Mqtt5IncomingQos1Interceptor
| Modifier and Type | Method and Description |
|---|---|
void |
onPublish(@NotNull Mqtt5ClientConfig clientConfig,
@NotNull Mqtt5Publish publish,
@NotNull Mqtt5PubAckBuilder pubAckBuilder)
Called when a server sent a Publish message with QoS 1.
|
void onPublish(@NotNull
@NotNull Mqtt5ClientConfig clientConfig,
@NotNull
@NotNull Mqtt5Publish publish,
@NotNull
@NotNull Mqtt5PubAckBuilder pubAckBuilder)
This method must not block and just add some properties to the outgoing PubAck message.
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.