- All Known Implementing Classes:
MockDelayer
public interface Delayer
Delays the execution of a given task.
-
Method Summary
Modifier and TypeMethodDescriptionArranges for the task to be submitted to the given executor after the delay is evaluated.static Delayer
of
(ScheduledExecutorService scheduler) static Delayer
A Delayer that uses the system-wide scheduler through CompletableFuture::delayedExecutor.
-
Method Details
-
delay
Arranges for the task to be submitted to the given executor after the delay is evaluated. -
systemDelayer
A Delayer that uses the system-wide scheduler through CompletableFuture::delayedExecutor. -
of
-