public final class ExceptionDependentRetry extends Object implements RetryPolicy
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ExceptionDependentRetry.Builder |
RetryPolicy.Action, RetryPolicy.EventNO_RETRY_ACTION, RETRY_WITHOUT_SLEEP_ACTION| 限定符和类型 | 方法和说明 |
|---|---|
RetryPolicy.Action |
handleAttemptFailure(RetryPolicy.Event event)
Determines whether it is supposed to retry after the operation has failed.
|
static ExceptionDependentRetry.Builder |
newBuilder() |
public static ExceptionDependentRetry.Builder newBuilder()
public RetryPolicy.Action handleAttemptFailure(RetryPolicy.Event event)
RetryPolicyhandleAttemptFailure 在接口中 RetryPolicyevent - The failed event.Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.