22
22
* max interval}, it is no longer increased. Stops retrying once the
23
23
* {@link #setMaxElapsedTime(long) max elapsed time} has been reached.
24
24
*
25
- * <p>Example: The default interval is {@value #DEFAULT_INITIAL_INTERVAL}ms, default
26
- * multiplier is {@value #DEFAULT_MULTIPLIER} and the default max interval is
27
- * {@value #DEFAULT_MAX_INTERVAL}. For 10 attempts the sequence will be
25
+ * <p>Example: The default interval is {@value #DEFAULT_INITIAL_INTERVAL} ms,
26
+ * the default multiplier is {@value #DEFAULT_MULTIPLIER}, and the default max
27
+ * interval is {@value #DEFAULT_MAX_INTERVAL}. For 10 attempts the sequence will be
28
28
* as follows:
29
29
*
30
30
* <pre>
42
42
* 10 30000
43
43
* </pre>
44
44
*
45
- * Note that the default max elapsed time is {@link Long#MAX_VALUE}. Use
46
- * {@link #setMaxElapsedTime(long)} to limit the maximum number of time
45
+ * <p> Note that the default max elapsed time is {@link Long#MAX_VALUE}. Use
46
+ * {@link #setMaxElapsedTime(long)} to limit the maximum length of time
47
47
* that an instance should accumulate before returning
48
48
* {@link BackOffExecution#STOP}.
49
49
*
@@ -93,9 +93,9 @@ public ExponentialBackOff() {
93
93
}
94
94
95
95
/**
96
- * Create an instance.
96
+ * Create an instance with the supplied settings .
97
97
* @param initialInterval the initial interval in milliseconds
98
- * @param multiplier the multiplier (should be equal or higher to 1)
98
+ * @param multiplier the multiplier (should be greater than or equal to 1)
99
99
*/
100
100
public ExponentialBackOff (long initialInterval , double multiplier ) {
101
101
checkMultiplier (multiplier );
@@ -118,15 +118,15 @@ public long getInitialInterval() {
118
118
}
119
119
120
120
/**
121
- * The value to multiply the current interval with for each retry attempt.
121
+ * The value to multiply the current interval by for each retry attempt.
122
122
*/
123
123
public void setMultiplier (double multiplier ) {
124
124
checkMultiplier (multiplier );
125
125
this .multiplier = multiplier ;
126
126
}
127
127
128
128
/**
129
- * Return the value to multiply the current interval with for each retry attempt.
129
+ * Return the value to multiply the current interval by for each retry attempt.
130
130
*/
131
131
public double getMultiplier () {
132
132
return multiplier ;
0 commit comments