Class TimerDelay
- java.lang.Object
-
- io.smallrye.faulttolerance.core.retry.TimerDelay
-
- All Implemented Interfaces:
AsyncDelay
public class TimerDelay extends Object implements AsyncDelay
-
-
Field Summary
-
Fields inherited from interface io.smallrye.faulttolerance.core.retry.AsyncDelay
NONE
-
-
Constructor Summary
Constructors Constructor Description TimerDelay(BackOff backOff, Timer timer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter(Runnable task, Executor executor)Runs thetaskafter delay on givenExecutor.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.faulttolerance.core.retry.AsyncDelay
after
-
-
-
-
Method Detail
-
after
public void after(Runnable task, Executor executor)
Description copied from interface:AsyncDelayRuns thetaskafter delay on givenExecutor. If givenexecutorisnull, the task is executed on an implementation-defined thread.- Specified by:
afterin interfaceAsyncDelay
-
-