public interface Scheduler
| Modifier and Type | Method and Description |
|---|---|
Scheduled |
schedule(Duration initialDelay,
Duration interval,
Runnable callback)
Schedules a runnable at a fixed rate.
|
Scheduled |
schedule(Duration delay,
Runnable callback)
Schedules a runnable after a delay.
|
default Scheduled |
schedule(long initialDelay,
long interval,
TimeUnit timeUnit,
Runnable callback)
Schedules a runnable at a fixed rate.
|
default Scheduled |
schedule(long delay,
TimeUnit timeUnit,
Runnable callback)
Schedules a runnable after a delay.
|
default Scheduled schedule(long delay, TimeUnit timeUnit, Runnable callback)
delay - the delay after which to run the callbacktimeUnit - the time unitcallback - the callback to runScheduled schedule(Duration delay, Runnable callback)
delay - the delay after which to run the callbackcallback - the callback to rundefault Scheduled schedule(long initialDelay, long interval, TimeUnit timeUnit, Runnable callback)
initialDelay - the initial delayinterval - the interval at which to run the callbacktimeUnit - the time unitcallback - the callback to runCopyright © 2013–2018. All rights reserved.