public class Retry extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Retry.AllFailedHandle |
static class |
Retry.Builder |
static interface |
Retry.NextDelay
第几次之后延迟多长时间重试
|
static interface |
Retry.OnFailed |
static class |
Retry.Status |
static interface |
Retry.Task |
static interface |
Retry.TaskNameSupplier
Deprecated.
|
static class |
Retry.TimeUnitNextDelay |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
execute(Retry.Task task) |
void |
execute(Runnable runnable) |
Retry.Status |
getStatus() |
Retry |
handle(Retry.AllFailedHandle allFailedHandle)
Deprecated.
|
static Retry.Builder |
newBuilder() |
void |
onFailed(Calendar start,
int times,
Throwable throwable) |
public static Retry.Builder newBuilder()
public void execute(Runnable runnable)
public void execute(Retry.Task task)
public void execute()
public Retry.Status getStatus()
@Deprecated public Retry handle(Retry.AllFailedHandle allFailedHandle)
allFailedHandle - allFailedHandleBuilder#onAllFailed(AllFailedHandle)Copyright © 2020. All rights reserved.