Update Javadoc due to changes in retry support
See gh-35940
This commit is contained in:
parent
adcd7cb4cb
commit
75e3f44a7b
|
|
@ -70,9 +70,7 @@ public class RetryException extends Exception implements RetryState {
|
|||
|
||||
|
||||
/**
|
||||
* Get the last exception thrown by the {@link Retryable} operation, or an
|
||||
* {@link InterruptedException} thrown while sleeping for the current
|
||||
* {@code BackOff} duration.
|
||||
* Get the last exception thrown by the {@link Retryable} operation.
|
||||
*/
|
||||
@Override
|
||||
public final Throwable getCause() {
|
||||
|
|
@ -102,7 +100,8 @@ public class RetryException extends Exception implements RetryState {
|
|||
}
|
||||
|
||||
/**
|
||||
* Return the exception from the last invocation (also exposed as a cause).
|
||||
* Return the exception from the last invocation (also exposed as the
|
||||
* {@linkplain #getCause() cause}).
|
||||
* @since 7.0.2
|
||||
*/
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -99,9 +99,9 @@ public interface RetryListener {
|
|||
* Called if the {@link RetryPolicy} is interrupted between retry attempts.
|
||||
* @param retryPolicy the {@code RetryPolicy}
|
||||
* @param retryable the {@link Retryable} operation
|
||||
* @param exception the resulting {@link RetryException}, with an
|
||||
* {@link InterruptedException} as the cause and any exceptions from previous
|
||||
* invocations of the {@code Retryable} operation as suppressed exceptions
|
||||
* @param exception the resulting {@link RetryException}, with the last
|
||||
* exception thrown by the {@code Retryable} operation as the cause and any
|
||||
* exceptions from previous attempts as suppressed exceptions
|
||||
* @see RetryException#getExceptions()
|
||||
* @see RetryException#getRetryCount()
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue