From 71744ee8cbe7cfd03e446e2aaa91b4a494edf09f Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Tue, 25 Aug 2020 11:15:44 -0400 Subject: [PATCH] More Javadoc polishing: ExponentialBackOffPolicy Resolves https://github.com/spring-projects/spring-retry/issues/210 --- .../retry/backoff/ExponentialBackOffPolicy.java | 15 +++++++-------- .../CircuitBreakerResetTimeoutTest.java | 6 +++++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/springframework/retry/backoff/ExponentialBackOffPolicy.java b/src/main/java/org/springframework/retry/backoff/ExponentialBackOffPolicy.java index 30234ea..3baa4ac 100644 --- a/src/main/java/org/springframework/retry/backoff/ExponentialBackOffPolicy.java +++ b/src/main/java/org/springframework/retry/backoff/ExponentialBackOffPolicy.java @@ -24,7 +24,7 @@ import org.springframework.util.ClassUtils; /** * Implementation of {@link BackOffPolicy} that increases the back off period for each - * retry attempt in a given set using the {@link Math#exp(double) exponential} function. + * retry attempt in a given set up to a limit. * * This implementation is thread-safe and suitable for concurrent access. Modifications to * the configuration do not affect any retry sets that are already in progress. @@ -61,7 +61,7 @@ public class ExponentialBackOffPolicy implements SleepingBackOffPolicyexp(backOffContext.expSeed)'. + * Pause for the current backoff interval. */ @Override public void backOff(BackOffContext backOffContext) throws BackOffInterruptedException { @@ -192,8 +191,8 @@ public class ExponentialBackOffPolicy implements SleepingBackOffPolicy