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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldRetryRequest
(HttpCommand command, HttpResponse response) Return true if the command should be retried.
-
Field Details
-
ALWAYS_RETRY
-
NEVER_RETRY
-
-
Method Details
-
shouldRetryRequest
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.
-