Class TimerDelay

java.lang.Object
io.smallrye.faulttolerance.core.retry.TimerDelay
All Implemented Interfaces:
AsyncDelay

public class TimerDelay extends Object implements AsyncDelay
Async delay based on Timer. Its default executor is the timer's Executor.
  • Constructor Details

    • TimerDelay

      public TimerDelay(BackOff backOff, Timer timer)
  • Method Details

    • after

      public void after(Throwable cause, Runnable task, Executor executor)
      Description copied from interface: AsyncDelay
      Runs the task after delay on given Executor. If given executor is null, the task is executed on an implementation-defined thread.
      Specified by:
      after in interface AsyncDelay