Interface MqttClientReconnector

All Known Subinterfaces:
Mqtt3ClientReconnector, Mqtt5ClientReconnector

@DoNotImplement public interface MqttClientReconnector
A reconnector is supplied by a MqttClientDisconnectedContext and can be used for reconnecting.

The client will reconnect only if at least one of the methods reconnect(boolean) or reconnectWhen(CompletableFuture, BiConsumer) is called.

All methods must only be called in MqttClientDisconnectedListener.onDisconnected(MqttClientDisconnectedContext). Some methods can also be called in the callback supplied to reconnectWhen(CompletableFuture, BiConsumer).

Since:
1.1