public interface RetryPolicy
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
shouldRetry(int retried,
long elapsed,
boolean sleep)
Whether retry is supported when operation fails.
|
boolean shouldRetry(int retried,
long elapsed,
boolean sleep)
retried - the number of times retried so farelapsed - the elapsed time in millisecond since the operation was attemptedsleep - should be sleepCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.