Skip to content

Commit 6754921

Browse files
committed
GH-391: Backoff Annotation: Polish random javadoc
Resolves #391
1 parent c89b951 commit 6754921

File tree

1 file changed

+9
-8
lines changed
  • src/main/java/org/springframework/retry/annotation

1 file changed

+9
-8
lines changed

src/main/java/org/springframework/retry/annotation/Backoff.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,19 +115,20 @@
115115
String multiplierExpression() default "";
116116

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

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

0 commit comments

Comments
 (0)