Interface TimedRetryAlgorithmWithContext

All Superinterfaces:
TimedRetryAlgorithm
All Known Implementing Classes:
ExponentialPollAlgorithm, ExponentialRetryAlgorithm, OperationTimedPollAlgorithm

public interface TimedRetryAlgorithmWithContext extends TimedRetryAlgorithm
A timed retry algorithm is responsible for the following operations, based on the previous attempt settings and current time:
  1. Creating first attempt TimedAttemptSettings.
  2. Accepting a task for retry so another attempt will be made.
  3. Canceling retrying process so the related Future will be canceled.
  4. Creating TimedAttemptSettings for each subsequent retry attempt.
Implementations of this interface receive a RetryingContext that can contain specific RetrySettings and retryable codes that should be used to determine the retry behavior.

Implementations of this interface must be be thread-save.