public class SimpleRetryPolicy extends Object implements RetryPolicy
| Constructor and Description | 
|---|
| SimpleRetryPolicy(RetryCondition retryCondition,
                 BackoffStrategy backoffStrategy) | 
| Modifier and Type | Method and Description | 
|---|---|
| long | computeDelayBeforeNextRetry(RetryPolicyContext context)Compute the delay before the next retry request. | 
| boolean | shouldRetry(RetryPolicyContext context)Determine whether a request should or should not be retried. | 
public SimpleRetryPolicy(RetryCondition retryCondition, BackoffStrategy backoffStrategy)
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.Copyright © 2019. All rights reserved.