public class AWSServerErrorRetryHandler extends BackoffLimitedRetryHandler
INSTANCE, logger
ALWAYS_RETRY, NEVER_RETRY
ALWAYS_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, shouldRetryRequest
public boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
HttpRetryHandler
shouldRetryRequest
in interface HttpRetryHandler
shouldRetryRequest
in class BackoffLimitedRetryHandler
protected boolean shouldRetryRequestOnError(HttpCommand command, HttpResponse response, AWSError error)
public void imposeBackoffExponentialDelay(long period, int pow, int failureCount, int max, String commandDescription)
imposeBackoffExponentialDelay
in class BackoffLimitedRetryHandler
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.