File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
spring-aop/src/main/java/org/springframework/aop/retry
spring-core/src/main/java/org/springframework/util/backoff Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 31
31
* @param excludes non-applicable exception types to avoid a retry for
32
32
* @param predicate a predicate for filtering exceptions from applicable methods
33
33
* @param maxAttempts the maximum number of retry attempts
34
- * @param delay the base delay after the initial invocation (in milliseconds)
35
- * @param jitter a jitter value for the next retry attempt (in milliseconds)
34
+ * @param delay the base delay after the initial invocation
35
+ * @param jitter a jitter value for the next retry attempt
36
36
* @param multiplier a multiplier for a delay for the next retry attempt
37
- * @param maxDelay the maximum delay for any retry attempt (in milliseconds)
37
+ * @param maxDelay the maximum delay for any retry attempt
38
38
* @see AbstractRetryInterceptor#getRetrySpec
39
39
* @see SimpleRetryInterceptor#SimpleRetryInterceptor(MethodRetrySpec)
40
40
* @see org.springframework.aop.retry.annotation.Retryable
Original file line number Diff line number Diff line change 43
43
* @since 7.0
44
44
* @see RetryAnnotationBeanPostProcessor
45
45
* @see RetryAnnotationInterceptor
46
+ * @see org.springframework.core.retry.RetryPolicy
46
47
* @see org.springframework.core.retry.RetryTemplate
47
48
* @see reactor.core.publisher.Mono#retryWhen
48
49
* @see reactor.core.publisher.Flux#retryWhen
95
96
long maxAttempts () default 3 ;
96
97
97
98
/**
98
- * The base delay after the initial invocation in milliseconds . If a multiplier
99
- * is specified, this serves as the initial delay to multiply from.
99
+ * The base delay after the initial invocation. If a multiplier is specified,
100
+ * this serves as the initial delay to multiply from.
100
101
* <p>The time unit is milliseconds by default but can be overridden via
101
102
* {@link #timeUnit}.
102
103
* <p>The default is 1000.
147
148
/**
148
149
* The {@link TimeUnit} to use for {@link #delay}, {@link #jitter},
149
150
* and {@link #maxDelay}.
150
- * <p>Defaults to {@link TimeUnit#MILLISECONDS}.
151
+ * <p>The default is {@link TimeUnit#MILLISECONDS}.
151
152
*/
152
153
TimeUnit timeUnit () default TimeUnit .MILLISECONDS ;
153
154
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public class ExponentialBackOff implements BackOff {
90
90
* The default maximum attempts: unlimited.
91
91
* @since 6.1
92
92
*/
93
- public static final int DEFAULT_MAX_ATTEMPTS = Integer .MAX_VALUE ;
93
+ public static final long DEFAULT_MAX_ATTEMPTS = Long .MAX_VALUE ;
94
94
95
95
96
96
private long initialInterval = DEFAULT_INITIAL_INTERVAL ;
You can’t perform that action at this time.
0 commit comments