public interface TaskScheduler
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable runnable)
Executes the given command at some time in the future.
|
ScheduledFuture<?> |
schedule(Runnable task,
Instant instant)
Schedules the given task to execute at the given time
|
ScheduledFuture<?> |
schedule(Runnable task,
long delay,
TimeUnit timeUnit)
Schedules the given task to execute at the given delay
|
void execute(Runnable runnable)
runnable - The runnable to run in the future@Nonnull ScheduledFuture<?> schedule(Runnable task, Instant instant)
task - the task to executeinstant - The instant at which to execute that task@Nonnull ScheduledFuture<?> schedule(Runnable task, long delay, TimeUnit timeUnit)
task - the task to executedelay - the delaytimeUnit - the time unit of the delayCopyright © 2018. All rights reserved.