public abstract class AbstractRetryPolicy extends Object implements RetryPolicy
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldRetry(int retried,
long elapsed,
boolean sleep)
Whether retry is supported when operation fails.
|
public boolean shouldRetry(int retried,
long elapsed,
boolean sleep)
RetryPolicyshouldRetry in interface RetryPolicyretried - the number of times retried so farelapsed - the elapsed time in millisecond since the operation was attemptedsleep - should be sleepCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.