Interface RetryPolicy


public interface RetryPolicy
  • Method Details

    • getInitTimeout

      Duration getInitTimeout()
      Initial timeout between retries.

      Returns:
      initial timeout
    • getRequestTimeout

      Duration getRequestTimeout()
      Max timeout between request retries.

      Returns:
      request timeout
    • getOverallTimeout

      Duration getOverallTimeout()
      Overall timeout of all retried requests.

      Returns:
      overall timeout
    • getRetriableHttpErrors

      Set<Object> getRetriableHttpErrors()
      Http retriable errors.

      Returns:
      set of http retriable errors
    • getRetryStrategy

      RetryStrategyType getRetryStrategy()
      Strategy of increasing timeouts between retries.

      Returns:
      retry strategy object
    • getMaxAttempts

      int getMaxAttempts()
      Max number of retries, 0 is infinite.

      Returns:
      max number of retry attempts