Annotation Interface RetryExponentialBackoff
@Inherited
@Documented
@Retention(RUNTIME)
@Target({METHOD,TYPE})
public @interface RetryExponentialBackoff
A retry policy that increases the delay time following an exponential sequence.
Allowed elements that are also annotated with
@Retry
.
Expected sequence if factor is 2: initial delay, 2 * initial delay + jitter, 4 * initial delay + jitter,
8 * initial delay + jitter, etc. maxDelay
is used to prevent endless waiting.-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionint
Multiplication factor.long
Initial Delay.
-
Element Details
-
initialDelay
long initialDelayInitial Delay. Default is 0.- Returns:
- Milliseconds long
- Default:
- 2L
-
factor
int factorMultiplication factor. Default is 2.- Returns:
- multiplication factor int
- Default:
- 2
-