Package org.apache.camel.util.backoff
Class BackOff
java.lang.Object
org.apache.camel.util.backoff.BackOff
A back-off policy.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BackOff.Builder
builder()
static BackOff.Builder
getDelay()
void
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.toString()
-
Field Details
-
NEVER
- See Also:
-
MAX_DURATION
-
DEFAULT_DELAY
-
DEFAULT_MULTIPLIER
- See Also:
-
-
Constructor Details
-
BackOff
public BackOff() -
BackOff
-
-
Method Details
-
getDelay
-
setDelay
The delay to wait before retry the operation. -
getMaxDelay
-
setMaxDelay
The maximum back-off time after which the delay is not more increased. -
getMaxElapsedTime
-
setMaxElapsedTime
The maximum elapsed time after which the back-off should be considered exhausted and no more attempts should be made. -
getMaxAttempts
-
setMaxAttempts
The maximum number of attempts after which the back-off should be considered exhausted and no more attempts should be made. -
getMultiplier
-
setMultiplier
The value to multiply the current interval by for each retry attempt. -
toString
-
builder
-
builder
-