public interface TimedRetryAlgorithm
TimedRetryAlgorithmWithContext, but without methods that accept a RetryingContext. Use TimedRetryAlgorithmWithContext instead of this interface when
possible.| Modifier and Type | Method and Description |
|---|---|
TimedAttemptSettings |
createFirstAttempt()
Same as
TimedRetryAlgorithmWithContext.createFirstAttempt(RetryingContext), but without
a RetryingContext. |
TimedAttemptSettings |
createNextAttempt(TimedAttemptSettings prevSettings)
|
boolean |
shouldRetry(TimedAttemptSettings nextAttemptSettings)
Same as
TimedRetryAlgorithmWithContext.shouldRetry(RetryingContext,
TimedAttemptSettings), but without a RetryingContext. |
TimedAttemptSettings createFirstAttempt()
TimedRetryAlgorithmWithContext.createFirstAttempt(RetryingContext), but without
a RetryingContext.
Use TimedRetryAlgorithmWithContext.createFirstAttempt(RetryingContext) instead of
this method when possible.
TimedAttemptSettings createNextAttempt(TimedAttemptSettings prevSettings)
TimedRetryAlgorithmWithContext.createNextAttempt(RetryingContext,
TimedAttemptSettings), but without a RetryingContext.
Use TimedRetryAlgorithmWithContext.createNextAttempt(RetryingContext,
TimedAttemptSettings) instead of this method when possible.
boolean shouldRetry(TimedAttemptSettings nextAttemptSettings) throws CancellationException
TimedRetryAlgorithmWithContext.shouldRetry(RetryingContext,
TimedAttemptSettings), but without a RetryingContext.
Use TimedRetryAlgorithmWithContext.shouldRetry(RetryingContext,
TimedAttemptSettings) instead of this method when possible.
CancellationException