- command
- the task to execute
- initialDelay
- the time to delay first execution
- period
- the period between successive executions
- unit
- the time unit of the initialDelay and period parameters
Documentation for this section has not yet been entered.
Type Reason Java.Util.Concurrent.RejectedExecutionException if the task cannot be scheduled for execution Java.Lang.NullPointerException if command is null Java.Lang.IllegalArgumentException if period less than or equal to zero
Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given period; that is executions will commence after initialDelay then initialDelay+period, then initialDelay + 2 * period, and so on. If any execution of the task encounters an exception, subsequent executions are suppressed. Otherwise, the task will only terminate via cancellation or termination of the executor. If any execution of this task takes longer than its period, then subsequent executions may start late, but will not concurrently execute.