public interface Mqtt5IncomingQos2Interceptor
| Modifier and Type | Method and Description |
|---|---|
void |
onPublish(@NotNull Mqtt5ClientConfig clientConfig,
@NotNull Mqtt5Publish publish,
@NotNull Mqtt5PubRecBuilder pubRecBuilder)
Called when a server sent a Publish message with QoS 2.
|
void |
onPubRel(@NotNull Mqtt5ClientConfig clientConfig,
@NotNull Mqtt5PubRel pubRel,
@NotNull Mqtt5PubCompBuilder pubCompBuilder)
Called when a server sent a PubRel message for a Publish message with QoS 2.
|
void onPublish(@NotNull
@NotNull Mqtt5ClientConfig clientConfig,
@NotNull
@NotNull Mqtt5Publish publish,
@NotNull
@NotNull Mqtt5PubRecBuilder pubRecBuilder)
This method must not block and just add some properties to the outgoing PubRec message.
clientConfig - the config of the client.publish - the Publish message with QoS 2 sent by the server.pubRecBuilder - the builder for the outgoing PubRec message.void onPubRel(@NotNull
@NotNull Mqtt5ClientConfig clientConfig,
@NotNull
@NotNull Mqtt5PubRel pubRel,
@NotNull
@NotNull Mqtt5PubCompBuilder pubCompBuilder)
This method must not block and just add some properties to the outgoing PubComp message.
clientConfig - the config of the client.pubRel - the PubRel message sent by the server.pubCompBuilder - the builder for the outgoing PubComp message.