- task
- the task to schedule.
- when
- time of execution.
Type Reason Java.Lang.IllegalArgumentException if when.getTime() . Java.Lang.IllegalStateException if the Timer has been canceled, or if the task has been scheduled or canceled.
Schedule a task for single execution. If when is less than the current time, it will be scheduled to be executed as soon as possible.