org.jclouds.http
Interface HttpRetryHandler
- All Known Implementing Classes:
- AtmosClientErrorRetryHandler, AWSClientErrorRetryHandler, AWSRedirectionRetryHandler, AzureStorageClientErrorRetryHandler, BackoffLimitedRetryHandler, DelegatingRetryHandler, DeltacloudRedirectionRetryHandler, RedirectionRetryHandler
public interface HttpRetryHandler
Indicate whether a request should be retried after a server error response (HTTP status code >=
500) based on the request's replayable status and the number of attempts already performed.
- Author:
- James Murty
ALWAYS_RETRY
static final HttpRetryHandler ALWAYS_RETRY
NEVER_RETRY
static final HttpRetryHandler NEVER_RETRY
shouldRetryRequest
boolean shouldRetryRequest(HttpCommand command,
HttpResponse response)
- Return true if the command should be retried. This method should only be invoked when the
response has failed with a HTTP 5xx error indicating a server-side error.
Copyright © 2009-2011 jclouds. All Rights Reserved.