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 Type
    Method
    Description
    initialDelay(long initialDelay, @NotNull TimeUnit timeUnit)
    Sets the initial delay the client will wait before it tries to reconnect.
    maxDelay(long maxDelay, @NotNull TimeUnit timeUnit)
    Sets the maximum delay the client will wait before it tries to reconnect.
  • Method Details

    • initialDelay

      @CheckReturnValue @NotNull B initialDelay(long initialDelay, @NotNull @NotNull TimeUnit timeUnit)
      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

      @CheckReturnValue @NotNull B maxDelay(long maxDelay, @NotNull @NotNull TimeUnit timeUnit)
      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.