BackoffStrategy, RetryCondition, RetryPolicypublic class RetryPolicyAdapter extends Object implements RetryPolicy
RetryPolicy to the new RetryPolicy. This class is
intended for internal use by the SDK.| Constructor | Description |
|---|---|
RetryPolicyAdapter(RetryPolicy legacyRetryPolicy,
LegacyClientConfiguration clientConfiguration) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
computeDelayBeforeNextRetry(RetryPolicyContext context) |
Compute the delay before the next retry request.
|
RetryPolicy |
getLegacyRetryPolicy() |
|
boolean |
shouldRetry(RetryPolicyContext context) |
Determine whether a request should or should not be retried.
|
public RetryPolicyAdapter(RetryPolicy legacyRetryPolicy, LegacyClientConfiguration clientConfiguration)
public long computeDelayBeforeNextRetry(RetryPolicyContext context)
BackoffStrategycomputeDelayBeforeNextRetry in interface BackoffStrategycontext - Context about the state of the last request and information about the number of requests made.public boolean shouldRetry(RetryPolicyContext context)
RetryConditionshouldRetry in interface RetryConditioncontext - Context about the state of the last request and information about the number of requests made.public RetryPolicy getLegacyRetryPolicy()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.