Package org.apache.camel.util.backoff
Class BackOff
java.lang.Object
org.apache.camel.util.backoff.BackOff
A back-off policy.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BackOff.Builderbuilder()static BackOff.BuildergetDelay()voidThe delay to wait before retry the operation.voidsetMaxAttempts(Long maxAttempts) The maximum number of attempts after which the back-off should be considered exhausted and no more attempts should be made.voidsetMaxDelay(Duration maxDelay) The maximum back-off time after which the delay is not more increased.voidsetMaxElapsedTime(Duration maxElapsedTime) The maximum elapsed time after which the back-off should be considered exhausted and no more attempts should be made.voidsetMultiplier(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
-