public interface Scheduler
|Modifier and Type||Interface and Description|
|Modifier and Type||Method and Description|
Cancels all scheduled tasks.
Scheduler.ScheduledTask scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit timeUnit)
commandto be executed periodically after
initialDelay. Frequency of execution is represented by
delay. New task is scheduled after execution of current one.
command- the task to be executed
initialDelay- for how long the first execution is delayed
delay- frequency of task execution
timeUnit- the time unit
Copyright © 2010–2023. All rights reserved.