Interface RetryScheduler


public interface RetryScheduler
This interface is used to schedule future retry attempts for a failed operation. The retry delay and the number of attempt is defined by implementing classes. Implementations should assure that only one future retry operation is ever scheduled at a time.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Resets the scheduler, effectively cancelling any future retry operation.
    void
    schedule(Runnable retryOperation)
    A request to schedule a future retry (or retries) for a failed operation.
  • Method Details

    • schedule

      void schedule(Runnable retryOperation)
      A request to schedule a future retry (or retries) for a failed operation. Noop if an operation has already been scheduled.
    • reset

      void reset()
      Resets the scheduler, effectively cancelling any future retry operation.