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 2121 * between two attempts and a maximum number of retries.
2222 *
2323 * @author Stephane Nicoll
24+ * @author Sam Brannen
2425 * @since 4.1
2526 */
2627public class FixedBackOff implements BackOff {
@@ -50,6 +51,17 @@ public class FixedBackOff implements BackOff {
5051 public FixedBackOff () {
5152 }
5253
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+
5365 /**
5466 * Create an instance with the supplied interval and maximum number of attempts.
5567 * @param interval the interval between two attempts in milliseconds
You can’t perform that action at this time.
0 commit comments