Skip to content

Commit

Permalink
spring-projectsGH-391: Backoff Annotation: Polish random javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed Oct 25, 2023
1 parent c89b951 commit 6754921
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/main/java/org/springframework/retry/annotation/Backoff.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,20 @@
String multiplierExpression() default "";

/**
* In the exponential case ({@link #multiplier()} > 0) set this to true to have the
* backoff delays randomized with jitter, so that the maximum delay is multiplier
* times the previous delay and the distribution is uniform between the two values.
* In the exponential case ({@link #multiplier()} > 0 and not equal to 1.0) set
* this to true to have the backoff delays randomized with jitter, so that the maximum
* delay is multiplier times the previous delay and the distribution is uniform
* between the two values.
* @return the flag to signal randomization is required (default false)
*/
boolean random() default false;

/**
* Evaluates to a value. In the exponential case ({@link #multiplier()} > 0) set
* this to true to have the backoff delays randomized, so that the maximum delay is
* multiplier times the previous delay and the distribution is uniform between the two
* values. Use {@code #{...}} for one-time evaluation during initialization, omit the
* delimiters for evaluation at runtime.
* Evaluates to a value. In the exponential case ({@link #multiplier()} > 0 and not
* equal to 1.0) set this to true to have the backoff delays randomized, so that the
* maximum delay is multiplier times the previous delay and the distribution is
* uniform between the two values. Use {@code #{...}} for one-time evaluation during
* initialization, omit the delimiters for evaluation at runtime.
* @return the flag to signal randomization is required (default false)
*/
String randomExpression() default "";
Expand Down

0 comments on commit 6754921

Please sign in to comment.