public interface ResultRetryAlgorithm<ResponseT>
ResultRetryAlgorithmWithContext, but without methods that accept a RetryingContext. Use ResultRetryAlgorithmWithContext instead of this interface when
possible.| Modifier and Type | Method and Description |
|---|---|
TimedAttemptSettings |
createNextAttempt(Throwable prevThrowable,
ResponseT prevResponse,
TimedAttemptSettings prevSettings)
|
boolean |
shouldRetry(Throwable prevThrowable,
ResponseT prevResponse)
Same as
shouldRetry(Throwable, Object), but without a
RetryingContext. |
TimedAttemptSettings createNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings)
ResultRetryAlgorithmWithContext.createNextAttempt(RetryingContext, Throwable,
Object, TimedAttemptSettings), but without a RetryingContext.
Use ResultRetryAlgorithmWithContext.createNextAttempt(RetryingContext, Throwable,
Object, TimedAttemptSettings) instead of this method when possible.
boolean shouldRetry(Throwable prevThrowable, ResponseT prevResponse) throws CancellationException
shouldRetry(Throwable, Object), but without a
RetryingContext.
Use ResultRetryAlgorithmWithContext.shouldRetry(RetryingContext, Throwable, Object)
instead of this method when possible.
CancellationException