Interface RetryPolicy.Constant.Builder

Enclosing interface:
RetryPolicy.Constant

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

    • maxRetries

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

      RetryPolicy.Constant.Builder delayInSeconds(long delayInSeconds)
      Sets the period of time between retries.
      Parameters:
      delayInSeconds - period of time between retries
      Returns:
      a builder
    • build

      Builds a Constant object
      Returns:
      a Constant