Skip to content

Commit 75e3f44

Browse files
committed
Update Javadoc due to changes in retry support
See gh-35940
1 parent adcd7cb commit 75e3f44

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

spring-core/src/main/java/org/springframework/core/retry/RetryException.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ public RetryException(String message, Throwable cause) {
7070

7171

7272
/**
73-
* Get the last exception thrown by the {@link Retryable} operation, or an
74-
* {@link InterruptedException} thrown while sleeping for the current
75-
* {@code BackOff} duration.
73+
* Get the last exception thrown by the {@link Retryable} operation.
7674
*/
7775
@Override
7876
public final Throwable getCause() {
@@ -102,7 +100,8 @@ public List<Throwable> getExceptions() {
102100
}
103101

104102
/**
105-
* Return the exception from the last invocation (also exposed as a cause).
103+
* Return the exception from the last invocation (also exposed as the
104+
* {@linkplain #getCause() cause}).
106105
* @since 7.0.2
107106
*/
108107
@Override

spring-core/src/main/java/org/springframework/core/retry/RetryListener.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ default void onRetryPolicyExhaustion(RetryPolicy retryPolicy, Retryable<?> retry
9999
* Called if the {@link RetryPolicy} is interrupted between retry attempts.
100100
* @param retryPolicy the {@code RetryPolicy}
101101
* @param retryable the {@link Retryable} operation
102-
* @param exception the resulting {@link RetryException}, with an
103-
* {@link InterruptedException} as the cause and any exceptions from previous
104-
* invocations of the {@code Retryable} operation as suppressed exceptions
102+
* @param exception the resulting {@link RetryException}, with the last
103+
* exception thrown by the {@code Retryable} operation as the cause and any
104+
* exceptions from previous attempts as suppressed exceptions
105105
* @see RetryException#getExceptions()
106106
* @see RetryException#getRetryCount()
107107
*/

0 commit comments

Comments
 (0)