Package 

Interface HttpRequestRetryPolicy

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean shouldRetry(Integer statusCode, Integer numRetries) Determines if request should be retried.
      abstract Double getRetryDelay(Integer numRetries) Returns a delay for the next retry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • shouldRetry

         abstract Boolean shouldRetry(Integer statusCode, Integer numRetries)

        Determines if request should be retried.

        Parameters:
        statusCode - HTTP-status code of the request.
        numRetries - number of times the request was already retried.
      • getRetryDelay

         abstract Double getRetryDelay(Integer numRetries)

        Returns a delay for the next retry.

        Parameters:
        numRetries - number of times the request was already retried.