Modifier and Type | Method and Description |
---|---|
SynchronizationContext.ScheduledHandle |
SynchronizationContext.schedule(Runnable task,
long delay,
TimeUnit unit,
ScheduledExecutorService timerService)
Schedules a task to be added and run via
SynchronizationContext.execute(java.lang.Runnable) after a delay. |
SynchronizationContext.ScheduledHandle |
SynchronizationContext.scheduleWithFixedDelay(Runnable task,
long initialDelay,
long delay,
TimeUnit unit,
ScheduledExecutorService timerService)
Schedules a task to be added and run via
SynchronizationContext.execute(java.lang.Runnable) after an inital delay and then
repeated after the delay until cancelled. |