Interface Scheduler
- All Known Implementing Classes:
SchedulerExecutorPoolImpl,SchedulerSameThreadImpl
public interface Scheduler
Scheduler is used to run the commands, tasks, etc.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<Void>run(SchedulerPoll type, ThrowingRunnable<Throwable> runnable) Runs the supplier in the specified threaddefault CompletableFuture<Void>runLater(SchedulerPoll type, Duration delay, ThrowingRunnable<Throwable> runnable) Runs the supplier in the specified thread after the specified delayvoidshutdown()default <T> CompletableFuture<T>supply(SchedulerPoll type, ThrowingSupplier<T, Throwable> supplier) Runs the supplier in the specified thread<T> CompletableFuture<T>supplyLater(SchedulerPoll type, Duration delay, ThrowingSupplier<T, Throwable> supplier) Runs the supplier in the specified thread after the specified delay
-
Method Details
-
shutdown
void shutdown()