| 程序包 | 说明 |
|---|---|
| org.apache.ratis.protocol.exceptions | |
| org.apache.ratis.retry |
| 类和说明 |
|---|
| RetryPolicy
Policy abstract for retrying.
|
| 类和说明 |
|---|
| 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.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.
|
| RetryPolicy
Policy abstract for retrying.
|
| RetryPolicy.Action
The action it should take.
|
| RetryPolicy.Event
The event triggered the failure.
|
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.