File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
spring-core/src/main/java/org/springframework/util/backoff Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 21
21
* between two attempts and a maximum number of retries.
22
22
*
23
23
* @author Stephane Nicoll
24
+ * @author Sam Brannen
24
25
* @since 4.1
25
26
*/
26
27
public class FixedBackOff implements BackOff {
@@ -50,6 +51,17 @@ public class FixedBackOff implements BackOff {
50
51
public FixedBackOff () {
51
52
}
52
53
54
+ /**
55
+ * Create an instance with the supplied interval and an unlimited number of
56
+ * attempts.
57
+ * @param interval the interval between two attempts in milliseconds
58
+ * @since 7.0
59
+ * @see #setMaxAttempts(long)
60
+ */
61
+ public FixedBackOff (long interval ) {
62
+ this .interval = interval ;
63
+ }
64
+
53
65
/**
54
66
* Create an instance with the supplied interval and maximum number of attempts.
55
67
* @param interval the interval between two attempts in milliseconds
You can’t perform that action at this time.
0 commit comments