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(@IntRange(from=0L) long time,
TimeUnit unit)
Specifies that the task should delay its execution by the specified amount of time.
|
Scheduler.TaskBuilder |
repeat(@IntRange(from=0L) 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(@IntRange(from=0L) long time, TimeUnit unit)
time - the time to delay byunit - the unit of time for timeScheduler.TaskBuilder repeat(@IntRange(from=0L) long time, TimeUnit unit)
time - the time to delay byunit - the unit of time for timeScheduler.TaskBuilder clearDelay()
Scheduler.TaskBuilder clearRepeat()
ScheduledTask schedule()