| Constructor and Description |
|---|
AbstractMainThreadBasedScheduler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
log(java.lang.Throwable throwable) |
protected abstract void |
runAsynchronous(java.lang.Runnable task,
java.time.Duration delay) |
protected abstract void |
runSynchronous(java.lang.Runnable task,
java.time.Duration delay) |
<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
|
public final <T> java.util.concurrent.CompletableFuture<T> supplyLater(SchedulerPoll type, java.time.Duration delay, ThrowingSupplier<T,java.lang.Throwable> supplier)
SchedulersupplyLater in interface SchedulerT - the supplier return typetype - the thread typedelay - the delaysupplier - the supplier to runprotected abstract void runSynchronous(java.lang.Runnable task,
java.time.Duration delay)
protected abstract void runAsynchronous(java.lang.Runnable task,
java.time.Duration delay)
protected void log(java.lang.Throwable throwable)