Interface RetryStrategy

All Known Implementing Classes:
GetServerErrorRetryStrategy

public interface RetryStrategy
Interface for describing retry strategy.
  • Method Summary

    Modifier and Type Method Description
    boolean retryAllowed​(java.lang.String method, int statusCode, java.net.URI uri)
    Method says if retry is allowed for given parameter combination.
  • Method Details

    • retryAllowed

      boolean retryAllowed​(java.lang.String method, int statusCode, java.net.URI uri)
      Method says if retry is allowed for given parameter combination.
      Parameters:
      method - HTTP method
      statusCode - HTTP response code
      uri - requested URL
      Returns:
      true it retry is allowed