@Override public boolean shouldRetry(HttpRequest request, IOException exception) { return retriesRemaining() && options.getRetryStrategy().shouldRetry(request, exception); }
@Override public boolean shouldRetry(HttpRequest request, HttpResponse response) { return retriesRemaining() && options.getRetryStrategy().shouldRetry(request, response); }
if (retries < maxRetries && retryStrategy.shouldRetry(request, response)) { LOG.warn(String.format("Going to retry failed request to '%s' (Status: %d)", request.getUrl(), response.getStatusCode())); } else { if (retries < maxRetries && retryStrategy.shouldRetry(request, e)) { LOG.warn(String.format("Going to retry failed request to '%s'", request.getUrl()), e); } else {