- task
- the task to schedule.
- delay
- amount of time in milliseconds before first execution.
- period
- amount of time in milliseconds between subsequent executions.
Type Reason Java.Lang.IllegalArgumentException if delay or period <= 0. Java.Lang.IllegalStateException if the Timer has been canceled, or if the task has been scheduled or canceled.
Schedule a task for repeated fixed-rate execution after a specific delay has passed.