Interface RetryPolicy.Exponential.Builder

Enclosing interface:
RetryPolicy.Exponential

public static interface RetryPolicy.Exponential.Builder
A builder to create a RetryPolicy.Exponential
  • Method Details

    • maxRetries

      RetryPolicy.Exponential.Builder maxRetries(int maxRetries)
      Sets the maximum number of retries
      Parameters:
      maxRetries - the maximum number of retries
      Returns:
      a builder
    • initialDelayInSeconds

      RetryPolicy.Exponential.Builder initialDelayInSeconds(long initialDelayInSeconds)
      Sets the initial delay in seconds.
      Parameters:
      initialDelayInSeconds - the initial delay in seconds
      Returns:
      a builder
    • multiplier

      RetryPolicy.Exponential.Builder multiplier(double multiplier)
      Sets the multiplier of the delay interval
      Parameters:
      multiplier - the multiplier of the delay interval
      Returns:
      a builder
    • maximumDelayInSeconds

      RetryPolicy.Exponential.Builder maximumDelayInSeconds(long maximumDelayInSeconds)
      Sets the maximum time interval of the delay in seconds.
      Parameters:
      maximumDelayInSeconds - the maximum time interval of the delay in seconds
      Returns:
      a builder
    • build

      Builds a Exponential object
      Returns:
      a Exponential