Modifier and Type | Class and Description |
---|---|
static class |
BackOff.Builder
A builder for
BackOff |
Modifier and Type | Field and Description |
---|---|
static Duration |
DEFAULT_DELAY |
static double |
DEFAULT_MULTIPLIER |
static Duration |
MAX_DURATION |
static long |
NEVER |
Constructor and Description |
---|
BackOff() |
BackOff(Duration delay,
Duration maxDelay,
Duration maxElapsedTime,
Long maxAttempts,
Double multiplier) |
Modifier and Type | Method and Description |
---|---|
static BackOff.Builder |
builder() |
static BackOff.Builder |
builder(BackOff template) |
Duration |
getDelay() |
Long |
getMaxAttempts() |
Duration |
getMaxDelay() |
Duration |
getMaxElapsedTime() |
Double |
getMultiplier() |
void |
setDelay(Duration delay)
The delay to wait before retry the operation.
|
void |
setMaxAttempts(Long maxAttempts)
The maximum number of attempts after which the back-off should be considered exhausted and no more attempts
should be made.
|
void |
setMaxDelay(Duration maxDelay)
The maximum back-off time after which the delay is not more increased.
|
void |
setMaxElapsedTime(Duration maxElapsedTime)
The maximum elapsed time after which the back-off should be considered exhausted and no more attempts should be
made.
|
void |
setMultiplier(Double multiplier)
The value to multiply the current interval by for each retry attempt.
|
String |
toString() |
public static final long NEVER
public static final Duration MAX_DURATION
public static final Duration DEFAULT_DELAY
public static final double DEFAULT_MULTIPLIER
public BackOff()
public Duration getMaxDelay()
public void setMaxDelay(Duration maxDelay)
public Duration getMaxElapsedTime()
public void setMaxElapsedTime(Duration maxElapsedTime)
public Long getMaxAttempts()
public void setMaxAttempts(Long maxAttempts)
public Double getMultiplier()
public void setMultiplier(Double multiplier)
public static BackOff.Builder builder()
public static BackOff.Builder builder(BackOff template)
Apache Camel