Package com.hivemq.client.mqtt.lifecycle
Interface MqttClientAutoReconnectBuilderBase<B extends MqttClientAutoReconnectBuilderBase<B>>
- Type Parameters:
B- the type of the builder.
- All Known Subinterfaces:
MqttClientAutoReconnectBuilder,MqttClientAutoReconnectBuilder.Nested<P>
@DoNotImplement
public interface MqttClientAutoReconnectBuilderBase<B extends MqttClientAutoReconnectBuilderBase<B>>
Builder base for a
MqttClientAutoReconnect.- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptioninitialDelay(long initialDelay, @NotNull TimeUnit timeUnit) Sets the initial delay the client will wait before it tries to reconnect.Sets the maximum delay the client will wait before it tries to reconnect.
-
Method Details
-
initialDelay
Sets the initial delay the client will wait before it tries to reconnect.It must be positive.
- Parameters:
initialDelay- the initial delay.timeUnit- the time unit of the given initial delay.- Returns:
- the builder.
-
maxDelay
Sets the maximum delay the client will wait before it tries to reconnect.It must be positive or zero.
- Parameters:
maxDelay- the maximum delay.timeUnit- the time unit of the given maximum delay.- Returns:
- the builder.
-