Interface Mqtt5IncomingQos2Interceptor
public interface Mqtt5IncomingQos2Interceptor
Interface for interceptors of the QoS 2 control flow of incoming Publish messages.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidonPublish(@NotNull Mqtt5ClientConfig clientConfig, @NotNull Mqtt5Publish publish, @NotNull Mqtt5PubRecBuilder pubRecBuilder) Called when a server sent a Publish message with QoS 2.voidonPubRel(@NotNull Mqtt5ClientConfig clientConfig, @NotNull Mqtt5PubRel pubRel, @NotNull Mqtt5PubCompBuilder pubCompBuilder) Called when a server sent a PubRel message for a Publish message with QoS 2.
-
Method Details
-
onPublish
void onPublish(@NotNull @NotNull Mqtt5ClientConfig clientConfig, @NotNull @NotNull Mqtt5Publish publish, @NotNull @NotNull Mqtt5PubRecBuilder pubRecBuilder) Called when a server sent a Publish message with QoS 2.This method must not block and just add some properties to the outgoing PubRec message.
- Parameters:
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.
-
onPubRel
void onPubRel(@NotNull @NotNull Mqtt5ClientConfig clientConfig, @NotNull @NotNull Mqtt5PubRel pubRel, @NotNull @NotNull Mqtt5PubCompBuilder pubCompBuilder) Called when a server sent a PubRel message for a Publish message with QoS 2.This method must not block and just add some properties to the outgoing PubComp message.
- Parameters:
clientConfig- the config of the client.pubRel- the PubRel message sent by the server.pubCompBuilder- the builder for the outgoing PubComp message.
-