Interface RetryPolicy.Exponential

All Superinterfaces:
RetryPolicy
Enclosing interface:
RetryPolicy

public static interface RetryPolicy.Exponential extends RetryPolicy
The operation will be retried at exponential intervals. The delay will be incremented by multiplier after each iteration (multiplier = 0.5 means 50% increment).
  • Method Details

    • maxRetries

      int maxRetries()
      The maximum number of retries
      Returns:
      the maximum number of retries
    • initialDelayInSeconds

      long initialDelayInSeconds()
      The delay to be waited before executing the first retry.
      Returns:
      the initial delay in seconds
    • multiplier

      double multiplier()
      The multiplier of the delay interval.
      Returns:
      the multiplier of the delay interval
    • maximumDelayInSeconds

      long maximumDelayInSeconds()
      The maximum time interval of the delay in seconds.
      Returns:
      the maximum time interval of the delay in seconds
    • builder

      Returns an object that can be used to build a RetryPolicy.
      Returns:
      a RetryPolicy builder