public final class RequestTypeDependentRetryPolicy extends Object implements RetryPolicy
RaftClientRequest.Type dependent RetryPolicy
such that each type can be set to use an individual policy.
When the policy is not set for a particular type,
the RetryPolicies.retryForeverNoSleep() policy is used as the default.| 限定符和类型 | 类和说明 |
|---|---|
static class |
RequestTypeDependentRetryPolicy.Builder |
RetryPolicy.Action, RetryPolicy.EventNO_RETRY_ACTION, RETRY_WITHOUT_SLEEP_ACTION| 限定符和类型 | 方法和说明 |
|---|---|
RetryPolicy.Action |
handleAttemptFailure(RetryPolicy.Event event) |
static RequestTypeDependentRetryPolicy.Builder |
newBuilder() |
String |
toString() |
public static RequestTypeDependentRetryPolicy.Builder newBuilder()
public RetryPolicy.Action handleAttemptFailure(RetryPolicy.Event event)
handleAttemptFailure 在接口中 RetryPolicyCopyright © 2017–2025 The Apache Software Foundation. All rights reserved.