@FunctionalInterface public interface RetryPolicy
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
RetryPolicy.Action
The action it should take.
|
static interface |
RetryPolicy.Event
The event triggered the failure.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static RetryPolicy.Action |
NO_RETRY_ACTION |
static RetryPolicy.Action |
RETRY_WITHOUT_SLEEP_ACTION |
| 限定符和类型 | 方法和说明 |
|---|---|
RetryPolicy.Action |
handleAttemptFailure(RetryPolicy.Event event)
Determines whether it is supposed to retry after the operation has failed.
|
static final RetryPolicy.Action NO_RETRY_ACTION
static final RetryPolicy.Action RETRY_WITHOUT_SLEEP_ACTION
RetryPolicy.Action handleAttemptFailure(RetryPolicy.Event event)
event - The failed event.Copyright © 2017–2023 The Apache Software Foundation. All rights reserved.