Interface Mqtt5OutgoingQos2Interceptor
public interface Mqtt5OutgoingQos2Interceptor
Interface for interceptors of the QoS 2 control flow of outgoing Publish messages.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidonPubComp(@NotNull Mqtt5ClientConfig clientConfig, @NotNull Mqtt5PubRel pubRel, @NotNull Mqtt5PubComp pubComp) Called when a server sent a PubComp message for a Publish message with QoS 2.voidonPubRec(@NotNull Mqtt5ClientConfig clientConfig, @NotNull Mqtt5Publish publish, @NotNull Mqtt5PubRec pubRec, @NotNull Mqtt5PubRelBuilder pubRelBuilder) Called when a server sent a PubRec message for a Publish message with QoS 2.voidonPubRecError(@NotNull Mqtt5ClientConfig clientConfig, @NotNull Mqtt5Publish publish, @NotNull Mqtt5PubRec pubRec) Called when a server sent a PubRec message for a Publish message with QoS 2 with an Error Code.
-
Method Details
-
onPubRec
void onPubRec(@NotNull @NotNull Mqtt5ClientConfig clientConfig, @NotNull @NotNull Mqtt5Publish publish, @NotNull @NotNull Mqtt5PubRec pubRec, @NotNull @NotNull Mqtt5PubRelBuilder pubRelBuilder) Called when a server sent a PubRec message for a Publish message with QoS 2.This method must not block and just add some properties to the outgoing PubRel message.
- Parameters:
clientConfig- the config of the client.publish- the Publish message with QoS 2 sent by the client.pubRec- the PubRec message sent by the server.pubRelBuilder- the builder for the outgoing PubRel message.
-
onPubRecError
void onPubRecError(@NotNull @NotNull Mqtt5ClientConfig clientConfig, @NotNull @NotNull Mqtt5Publish publish, @NotNull @NotNull Mqtt5PubRec pubRec) Called when a server sent a PubRec message for a Publish message with QoS 2 with an Error Code.This method must not block.
- Parameters:
clientConfig- the config of the client.publish- the Publish message with QoS 2 sent by the client.pubRec- the PubRec message sent by the server.
-
onPubComp
void onPubComp(@NotNull @NotNull Mqtt5ClientConfig clientConfig, @NotNull @NotNull Mqtt5PubRel pubRel, @NotNull @NotNull Mqtt5PubComp pubComp) Called when a server sent a PubComp message for a Publish message with QoS 2.This method must not block.
- Parameters:
clientConfig- the config of the client.pubRel- the PubRel message sent by the client.pubComp- the PubComp message sent by the server.
-