@BetaApi
public interface TimedRetryAlgorithm
TimedAttemptSettings.
TimedAttemptSettings for each subsequent retry attempt.
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(TimedAttemptSettings nextAttemptSettings)
Returns
true if another attempt should be made, or false otherwise. |
TimedAttemptSettings |
createFirstAttempt()
Creates a first attempt
TimedAttemptSettings. |
TimedAttemptSettings |
createNextAttempt(TimedAttemptSettings prevSettings)
Creates a next attempt
TimedAttemptSettings, which defines properties of the next
attempt. |
TimedAttemptSettings createFirstAttempt()
TimedAttemptSettings.TimedAttemptSettings createNextAttempt(TimedAttemptSettings prevSettings)
TimedAttemptSettings, which defines properties of the next
attempt.prevSettings - previous attempt settingsnull if the implementing algorithm does not provide
specific settings for the next attemptboolean accept(TimedAttemptSettings nextAttemptSettings)
true if another attempt should be made, or false otherwise.nextAttemptSettings - attempt settings, which will be used for the next attempt, if
accepted