March 2005
Beginner to intermediate
1254 pages
104h 21m
English
RejectedExecutionException
An
exception
of this type is thrown by an Executor when it
cannot accept a task for execution. When a
ThreadPoolExecutor cannot accept a task, it
attempts to invoke a RejectedExecutionHandler.
ThreadPoolExecutor defines several nested
implementations of that handler interface that can handle the
rejected task without throwing an exception of this type.
Figure 16-88. java.util.concurrent.RejectedExecutionException
public class RejectedExecutionException extends RuntimeException { // Public Constructors public RejectedExecutionException( ); public RejectedExecutionException(Throwable cause); public RejectedExecutionException(String message); public RejectedExecutionException(String message, Throwable cause); }
Read now
Unlock full access