Additional top-level classes in compilation unit: SystemScheduler, ExecutorServiceScheduler, GuardedScheduler, DisabledScheduler, DisabledFuture.
| Modifier and Type | Method and Description |
|---|---|
| public static Scheduler | Returns: a scheduler that always returns a successfully completed futureReturns a scheduler that always returns a successfully completed future. |
| public static Scheduler | Returns: a scheduler that delegates to the aScheduledExecutorServicethe executor to schedule on scheduledExecutorService)Returns a scheduler that delegates to the a |
| public static Scheduler | Returns: a scheduler that suppresses and logs any exception thrown by the delegatethe scheduler to delegate to scheduler)Returns a scheduler that suppresses and logs any exception thrown by the delegate
|
| public Future | Returns: a scheduled future representing the pending submission of the taskthe executor to run the task executor, Runnable the runnable task to schedule command, long how long to delay, in units of delay, TimeUnit unita unit)TimeUnit determining how to interpret the delay parameterReturns a future that will submit the task to the executor after the given delay. |
| public static Scheduler | Returns: a scheduler that uses the system-wide scheduling threadReturns a scheduler that uses the system-wide scheduling thread by using
|
| disabledScheduler | back to summary |
|---|---|
| public static Scheduler disabledScheduler() Returns a scheduler that always returns a successfully completed future.
| |
| forScheduledExecutorService | back to summary |
|---|---|
| public static Scheduler forScheduledExecutorService(ScheduledExecutorService scheduledExecutorService) Returns a scheduler that delegates to the a
| |
| guardedScheduler | back to summary |
|---|---|
| public static Scheduler guardedScheduler(Scheduler scheduler) Returns a scheduler that suppresses and logs any exception thrown by the delegate
| |
| schedule | back to summary |
|---|---|
| public Future Returns a future that will submit the task to the executor after the given delay.
| |
| systemScheduler | back to summary |
|---|---|
| public static Scheduler systemScheduler() Returns a scheduler that uses the system-wide scheduling thread by using
| |