This method is responsible for queuing up a task
to be performed. The given newListeners
will be fired according to the requested event type
. If the type
is not specified, it will default to {@link Task#DEFAULT_EVENT_TYPE} indicating that the givennewListeners
should be fired at the completion of the task.
Note: If the task
is already queued, it will NOT be performed twice. The newListeners
will be added to the already-queued task
.
Note that if this is a recurring task, then a call to its {@code getRecurringTaskHandle} method must return a handle providedby a call to this implementation's {@code createRecurringTaskHandle}method. Note also that it is up to the caller to re-schedule this task for each recurrence, and that each such call must provide a unique instance of {@code ScheduledTask}. @param task the {@code ScheduledTask} to add @throws TaskRejectedException if the task cannot be added
run()
method.
null
.
@param nestedTask Nested task to execute Sequential
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|