public interface ITimer
ISessionTimer
to provide the scheduling functionality.Modifier and Type | Method and Description |
---|---|
ITimerTask |
schedule(Runnable task,
long delay)
Schedules the specified task for execution after the specified delay.
|
ITimerTask |
schedule(Runnable task,
long delay,
long period)
Schedules the specified task for repeated execution with the specified
initial delay.
|
ITimerTask schedule(Runnable task, long delay)
task
- the task to be scheduled for executiondelay
- the delay in millisecondsITimerTask schedule(Runnable task, long delay, long period)
task
- the task to be scheduled for executiondelay
- the delay in millisecondsperiod
- time in milliseconds between successive task executionsCopyright © 2017–2022 SNF4J.ORG. All rights reserved.