ThreadPoolExecutor.execute

Executes the given task sometime in the future. The task may execute in a new thread or in an existing pooled thread.

If the task cannot be submitted for execution, either because this executor has been shutdown or because its capacity has been reached, the task is handled by the current {@link RejectedExecutionHandler}.

@param command the task to execute @throws RejectedExecutionException at discretion of {@code RejectedExecutionHandler}, if the task cannot be accepted for execution @throws NullPointerException if {@code command} is null

class ThreadPoolExecutor
void
execute
(
Runnable command
)

Meta