- command
- the task to execute
Type Reason Java.Util.Concurrent.RejectedExecutionException at discretion of RejectedExecutionHandler, if the task cannot be accepted for execution Java.Lang.NullPointerException if command is null
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 RejectedExecutionHandler.