| 接口 | 说明 |
|---|---|
| RetryPolicies |
A collection of
RetryPolicy implementations |
| RetryPolicy |
Policy abstract for retrying.
|
| RetryPolicy.Action |
The action it should take.
|
| RetryPolicy.Event |
The event triggered the failure.
|
| 类 | 说明 |
|---|---|
| ExceptionDependentRetry |
Exception dependent retry policy.
|
| ExceptionDependentRetry.Builder | |
| ExponentialBackoffRetry |
Retry Policy exponentially increases sleep time with randomness on successive
retries.
|
| ExponentialBackoffRetry.Builder | |
| MultipleLinearRandomRetry |
Given pairs of number of retries and sleep time (n0, t0), (n1, t1), ...,
the first n0 retries sleep t0 milliseconds on average,
the following n1 retries sleep t1 milliseconds on average, and so on.
|
| RetryPolicies.Constants | |
| RetryPolicies.NoRetry | |
| RetryPolicies.RetryForeverNoSleep | |
| RetryPolicies.RetryForeverWithSleep |
For any requests, keep retrying forever with a fixed sleep time between attempts.
|
| RetryPolicies.RetryLimited |
For any requests, keep retrying a limited number of attempts with a fixed sleep time between attempts.
|
Copyright © 2017–2023 The Apache Software Foundation. All rights reserved.