public class AWSClientErrorRetryHandler extends Object implements HttpRetryHandler
ALWAYS_RETRY, NEVER_RETRY
Constructor and Description |
---|
AWSClientErrorRetryHandler(AWSUtils utils,
BackoffLimitedRetryHandler backoffLimitedRetryHandler,
Set<String> retryableCodes) |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldRetryRequest(HttpCommand command,
HttpResponse response)
Return true if the command should be retried.
|
protected boolean |
shouldRetryRequestOnError(HttpCommand command,
HttpResponse response,
AWSError error) |
@Inject public AWSClientErrorRetryHandler(AWSUtils utils, BackoffLimitedRetryHandler backoffLimitedRetryHandler, Set<String> retryableCodes)
public boolean shouldRetryRequest(HttpCommand command, HttpResponse response)
HttpRetryHandler
shouldRetryRequest
in interface HttpRetryHandler
protected boolean shouldRetryRequestOnError(HttpCommand command, HttpResponse response, AWSError error)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.