public static interface Scheduler.TaskBuilder
Modifier and Type | Method and Description |
---|---|
Scheduler.TaskBuilder |
clearDelay()
Clears the delay on this task.
|
Scheduler.TaskBuilder |
clearRepeat()
Clears the repeat interval on this task.
|
Scheduler.TaskBuilder |
delay(long time,
TimeUnit unit)
Specifies that the task should delay its execution by the specified amount of time.
|
Scheduler.TaskBuilder |
repeat(long time,
TimeUnit unit)
Specifies that the task should continue running after waiting for the specified amount, until
it is cancelled.
|
ScheduledTask |
schedule()
Schedules this task for execution.
|
Scheduler.TaskBuilder delay(long time, TimeUnit unit)
time
- the time to delay byunit
- the unit of time for time
Scheduler.TaskBuilder repeat(long time, TimeUnit unit)
time
- the time to delay byunit
- the unit of time for time
Scheduler.TaskBuilder clearDelay()
Scheduler.TaskBuilder clearRepeat()
ScheduledTask schedule()