public interface Scheduler
| Modifier and Type | Method and Description |
|---|---|
default java.util.concurrent.CompletableFuture<java.lang.Void> |
run(SchedulerPoll type,
ThrowingRunnable<java.lang.Throwable> runnable)
Runs the supplier in the specified thread
|
default java.util.concurrent.CompletableFuture<java.lang.Void> |
runLater(SchedulerPoll type,
java.time.Duration delay,
ThrowingRunnable<java.lang.Throwable> runnable)
Runs the supplier in the specified thread
after the specified delay
|
void |
shutdown() |
default <T> java.util.concurrent.CompletableFuture<T> |
supply(SchedulerPoll type,
ThrowingSupplier<T,java.lang.Throwable> supplier)
Runs the supplier in the specified thread
|
<T> java.util.concurrent.CompletableFuture<T> |
supplyLater(SchedulerPoll type,
java.time.Duration delay,
ThrowingSupplier<T,java.lang.Throwable> supplier)
Runs the supplier in the specified thread
after the specified delay
|
default java.util.concurrent.CompletableFuture<java.lang.Void> run(SchedulerPoll type, ThrowingRunnable<java.lang.Throwable> runnable)
type - the thread typerunnable - the runnable to rundefault java.util.concurrent.CompletableFuture<java.lang.Void> runLater(SchedulerPoll type, java.time.Duration delay, ThrowingRunnable<java.lang.Throwable> runnable)
type - the thread typedelay - the delayrunnable - the runnable to rundefault <T> java.util.concurrent.CompletableFuture<T> supply(SchedulerPoll type, ThrowingSupplier<T,java.lang.Throwable> supplier)
T - the supplier return typetype - the thread typesupplier - the supplier to run<T> java.util.concurrent.CompletableFuture<T> supplyLater(SchedulerPoll type, java.time.Duration delay, ThrowingSupplier<T,java.lang.Throwable> supplier)
T - the supplier return typetype - the thread typedelay - the delaysupplier - the supplier to runvoid shutdown()