public class Retry extends Object
| 限定符和类型 | 类和说明 |
|---|---|
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 class |
Retry.TimeUnitNextDelay |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute() |
void |
execute(Retry.Task task) |
void |
execute(Runnable runnable) |
Retry.Status |
getStatus() |
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()
Copyright © 2022. All rights reserved.