public static interface RetryPolicy.RetryCondition
限定符和类型 | 方法和说明 |
---|---|
boolean |
shouldRetry(SCSWebServiceRequest originalRequest,
SCSClientException exception,
int retriesAttempted)
Returns whether a failed request should be retried according to the
given request context.
|
boolean shouldRetry(SCSWebServiceRequest originalRequest, SCSClientException exception, int retriesAttempted)
originalRequest
- The original request object being executed. For
performance reason, this object is not a defensive copy,
and caller should not attempt to modify its data.exception
- The exception from the failed request, represented as an
AmazonClientException object. There are two types of
exception that will be passed to this method:
retriesAttempted
- The number of times the current request has been
attempted.Copyright © 2016. All rights reserved.