public interface Mqtt5OutgoingQos2Interceptor
Modifier and Type | Method and Description |
---|---|
void |
onPubComp(@NotNull Mqtt5ClientConfig clientConfig,
@NotNull Mqtt5PubRel pubRel,
@NotNull Mqtt5PubComp pubComp)
Called when a server sent a PubComp message for a Publish message with QoS 2.
|
void |
onPubRec(@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.
|
void |
onPubRecError(@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.
|
void onPubRec(@NotNull @NotNull Mqtt5ClientConfig clientConfig, @NotNull @NotNull Mqtt5Publish publish, @NotNull @NotNull Mqtt5PubRec pubRec, @NotNull @NotNull Mqtt5PubRelBuilder pubRelBuilder)
This method must not block and just add some properties to the outgoing PubRel message.
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.void onPubRecError(@NotNull @NotNull Mqtt5ClientConfig clientConfig, @NotNull @NotNull Mqtt5Publish publish, @NotNull @NotNull Mqtt5PubRec pubRec)
This method must not block.
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.void onPubComp(@NotNull @NotNull Mqtt5ClientConfig clientConfig, @NotNull @NotNull Mqtt5PubRel pubRel, @NotNull @NotNull Mqtt5PubComp pubComp)
This method must not block.
clientConfig
- the config of the client.pubRel
- the PubRel message sent by the client.pubComp
- the PubComp message sent by the server.