Interface RetryHandler

  • All Known Implementing Classes:
    SimpleRetryHandler

    public interface RetryHandler
    Define how retry should occur on a request.
    • Method Detail

      • isRetry

        boolean isRetry​(int retryCount,
                        HttpResponse<?> response)
        Return true if the request should be retried.
        Parameters:
        retryCount - The number of retry attempts already executed
        response - The HTTP response
        Returns:
        True if the request should be retried or false if not