A consequence of the use of {@code ScheduledFuture} objects isthat {@link ThreadPoolExecutor#afterExecute afterExecute} is alwayscalled with a null second {@code Throwable} argument, even if the{@code command} terminated abruptly. Instead, the {@code Throwable}thrown by such a task can be obtained via {@link Future#get}. @throws RejectedExecutionException at discretion of{@code RejectedExecutionHandler}, if the task cannot be accepted for execution because the executor has been shut down @throws NullPointerException {@inheritDoc}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|