public interface RetryPolicies
RetryPolicy implementations| 限定符和类型 | 接口和说明 |
|---|---|
static class |
RetryPolicies.Constants |
static class |
RetryPolicies.NoRetry |
static class |
RetryPolicies.RetryForeverNoSleep |
static class |
RetryPolicies.RetryForeverWithSleep
For any requests, keep retrying forever with a fixed sleep time between attempts.
|
static class |
RetryPolicies.RetryLimited
For any requests, keep retrying a limited number of attempts with a fixed sleep time between attempts.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RetryPolicy |
noRetry()
No retry.
|
static RetryPolicy |
retryForeverNoSleep()
For any requests, keep retrying forever with no sleep between attempts.
|
static RetryPolicies.RetryForeverWithSleep |
retryForeverWithSleep(TimeDuration sleepTime)
For any requests, keep retrying forever with a fixed sleep time between attempts.
|
static RetryPolicies.RetryLimited |
retryUpToMaximumCountWithFixedSleep(int maxAttempts,
TimeDuration sleepTime)
For any requests, keep retrying a limited number of attempts with a fixed sleep time between attempts.
|
static RetryPolicy retryForeverNoSleep()
static RetryPolicy noRetry()
static RetryPolicies.RetryForeverWithSleep retryForeverWithSleep(TimeDuration sleepTime)
static RetryPolicies.RetryLimited retryUpToMaximumCountWithFixedSleep(int maxAttempts, TimeDuration sleepTime)
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.