@FunctionalInterface public interface RetryPolicy
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RetryPolicy.Action
The action it should take.
|
static interface |
RetryPolicy.Event
The event triggered the failure.
|
| Modifier and Type | Field and Description |
|---|---|
static RetryPolicy.Action |
NO_RETRY_ACTION |
static RetryPolicy.Action |
RETRY_WITHOUT_SLEEP_ACTION |
| Modifier and Type | Method and Description |
|---|---|
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–2022 The Apache Software Foundation. All rights reserved.