File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
spring-core/src/main/java/org/springframework/util/backoff Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2024 the original author or authors.
2+ * Copyright 2002-2025 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -85,6 +85,7 @@ public class ExponentialBackOff implements BackOff {
8585 */
8686 public static final int DEFAULT_MAX_ATTEMPTS = Integer .MAX_VALUE ;
8787
88+
8889 private long initialInterval = DEFAULT_INITIAL_INTERVAL ;
8990
9091 private double multiplier = DEFAULT_MULTIPLIER ;
@@ -204,6 +205,7 @@ public int getMaxAttempts() {
204205 return this .maxAttempts ;
205206 }
206207
208+
207209 @ Override
208210 public BackOffExecution start () {
209211 return new ExponentialBackOffExecution ();
@@ -225,6 +227,7 @@ public String toString() {
225227 .toString ();
226228 }
227229
230+
228231 private class ExponentialBackOffExecution implements BackOffExecution {
229232
230233 private long currentInterval = -1 ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2018 the original author or authors.
2+ * Copyright 2002-2025 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -35,6 +35,7 @@ public class FixedBackOff implements BackOff {
3535 */
3636 public static final long UNLIMITED_ATTEMPTS = Long .MAX_VALUE ;
3737
38+
3839 private long interval = DEFAULT_INTERVAL ;
3940
4041 private long maxAttempts = UNLIMITED_ATTEMPTS ;
@@ -86,6 +87,7 @@ public long getMaxAttempts() {
8687 return this .maxAttempts ;
8788 }
8889
90+
8991 @ Override
9092 public BackOffExecution start () {
9193 return new FixedBackOffExecution ();
You can’t perform that action at this time.
0 commit comments