@BetaApi
public interface ExceptionRetryAlgorithm
TimedAttemptSettings for each subsequent retry attempt.
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Throwable prevThrowable)
Returns
true if another attempt should be made, or false otherwise. |
TimedAttemptSettings |
createNextAttempt(Throwable prevThrowable,
TimedAttemptSettings prevSettings)
Creates a next attempt
TimedAttemptSettings. |
TimedAttemptSettings createNextAttempt(Throwable prevThrowable, TimedAttemptSettings prevSettings)
TimedAttemptSettings.prevThrowable - exception thrown by the previous attemptprevSettings - previous attempt settingsnull, if the implementing algorithm does not provide
specific settings for the next attemptboolean accept(Throwable prevThrowable)
true if another attempt should be made, or false otherwise.prevThrowable - exception thrown by the previous attempt