public class Retry extends Object
| Constructor and Description |
|---|
Retry() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Long |
getDelay()
重试间隔,单位:秒。若不传,默认为1
minimum: 1
maximum: 30
|
Long |
getMaxAttempts()
最大重试次数,。若不传,默认为3
minimum: 1
maximum: 8
|
String |
getName()
重试策略名称,在单个流程中,名称需要唯一
|
int |
hashCode() |
void |
setDelay(Long delay) |
void |
setMaxAttempts(Long maxAttempts) |
void |
setName(String name) |
String |
toString() |
Retry |
withDelay(Long delay) |
Retry |
withMaxAttempts(Long maxAttempts) |
Retry |
withName(String name) |
public String getName()
public void setName(String name)
public Long getDelay()
public void setDelay(Long delay)
public Long getMaxAttempts()
public void setMaxAttempts(Long maxAttempts)
Copyright © 2022. All rights reserved.