Interface TaskBuilder
public interface TaskBuilder
Builder for configuring and scheduling tasks.
-
Method Summary
Modifier and TypeMethodDescriptionClear any scheduled repeat for this task.Set the delay before the task runs.Set the task to repeat at a fixed rate.schedule()Schedule the task.
-
Method Details
-
delay
Set the delay before the task runs.- Parameters:
delay- the delayunit- the time unit- Returns:
- this builder
-
repeat
Set the task to repeat at a fixed rate.- Parameters:
period- the period between runsunit- the time unit- Returns:
- this builder
-
clearRepeat
-
schedule
-