Package org.jclouds.http
Interface HttpRetryHandler
-
- All Known Implementing Classes:
AtmosClientErrorRetryHandler
,AtmosServerErrorRetryHandler
,AWSClientErrorRetryHandler
,AWSEC2IOExceptionRetryHandler
,AWSServerErrorRetryHandler
,AzureRateLimitRetryHandler
,AzureRetryableErrorHandler
,AzureStorageClientErrorRetryHandler
,B2RetryHandler
,BackoffLimitedRetryHandler
,ChefApiErrorRetryHandler
,DelegatingRetryHandler
,DigitalOcean2RateLimitRetryHandler
,GetJobRedirectionRetryHandler
,GoogleCloudStorageClientErrorRetryHandler
,GoogleCloudStorageRedirectRetryHandler
,InvalidateSessionAndRetryOn401AndLogoutOnClose
,RateLimitRetryHandler
,RedirectionRetryHandler
,RetryOnRenew
,RetryOnRenew
,RetryOnRenew
,S3RedirectionRetryHandler
,SessionManager
,SQSErrorRetryHandler
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.
-
-
Field Summary
Fields Modifier and Type Field Description static HttpRetryHandler
ALWAYS_RETRY
static HttpRetryHandler
NEVER_RETRY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
shouldRetryRequest(HttpCommand command, HttpResponse response)
Return true if the command should be retried.
-
-
-
Field Detail
-
ALWAYS_RETRY
static final HttpRetryHandler ALWAYS_RETRY
-
NEVER_RETRY
static final HttpRetryHandler NEVER_RETRY
-
-
Method Detail
-
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.
-
-