Interface TimedRetryAlgorithm (2.31.1)

public interface TimedRetryAlgorithm

Same as TimedRetryAlgorithmWithContext, but without methods that accept a RetryingContext. Use TimedRetryAlgorithmWithContext instead of this interface when possible.

Methods

createFirstAttempt()

public abstract TimedAttemptSettings createFirstAttempt()
Returns
TypeDescription
TimedAttemptSettings

createNextAttempt(TimedAttemptSettings prevSettings)

public abstract TimedAttemptSettings createNextAttempt(TimedAttemptSettings prevSettings)

Same as TimedRetryAlgorithmWithContext#createNextAttempt(RetryingContext, TimedAttemptSettings), but without a RetryingContext.

Use TimedRetryAlgorithmWithContext#createNextAttempt(RetryingContext, TimedAttemptSettings) instead of this method when possible.

Parameter
NameDescription
prevSettingsTimedAttemptSettings
Returns
TypeDescription
TimedAttemptSettings

shouldRetry(TimedAttemptSettings nextAttemptSettings)

public abstract boolean shouldRetry(TimedAttemptSettings nextAttemptSettings)

Same as TimedRetryAlgorithmWithContext#shouldRetry(RetryingContext, TimedAttemptSettings), but without a RetryingContext.

Use TimedRetryAlgorithmWithContext#shouldRetry(RetryingContext, TimedAttemptSettings) instead of this method when possible.

Parameter
NameDescription
nextAttemptSettingsTimedAttemptSettings
Returns
TypeDescription
boolean
Exceptions
TypeDescription
CancellationException