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