public class AWSServerErrorRetryHandler extends BackoffLimitedRetryHandler
INSTANCE, loggerALWAYS_RETRY, NEVER_RETRYALWAYS_RETRY, NEVER_RETRY| Constructor and Description |
|---|
AWSServerErrorRetryHandler(AWSUtils utils,
Set<String> retryableServerCodes) |
| Modifier and Type | Method and Description |
|---|---|
void |
imposeBackoffExponentialDelay(long period,
int pow,
int failureCount,
int max,
String commandDescription) |
boolean |
shouldRetryRequest(HttpCommand command,
HttpResponse response)
Return true if the command should be retried.
|
protected boolean |
shouldRetryRequestOnError(HttpCommand command,
HttpResponse response,
AWSError error) |
imposeBackoffExponentialDelay, imposeBackoffExponentialDelay, shouldRetryRequestpublic boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
HttpRetryHandlershouldRetryRequest in interface HttpRetryHandlershouldRetryRequest in class BackoffLimitedRetryHandlerprotected boolean shouldRetryRequestOnError(HttpCommand command, HttpResponse response, AWSError error)
public void imposeBackoffExponentialDelay(long period,
int pow,
int failureCount,
int max,
String commandDescription)
imposeBackoffExponentialDelay in class BackoffLimitedRetryHandlerCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.