Interface RetryPolicy.Constant

All Superinterfaces:
RetryPolicy
Enclosing interface:
RetryPolicy

public static interface RetryPolicy.Constant extends RetryPolicy
The operation will be retried periodically with a maximum number of tries.
  • Method Details

    • maxRetries

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

      long delayInSeconds()
      The period of time between retries.
      Returns:
      the period of time in seconds
    • builder

      static RetryPolicy.Constant.Builder builder()
      Returns an object that can be used to build a RetryPolicy.
      Returns:
      a RetryPolicy builder