RejectedExecutionException


RejectedExecutionException java.util.concurrent

Java 5.0 serializable unchecked

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  );   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net