Java In A Nutshell, 5th Edition
This RejectedExecutionHandler implementation simply throws a RejectedExecutionException . public static class ThreadPoolExecutor.AbortPolicy implements RejectedExecutionHandler { // Public Constructors public AbortPolicy ( ); // Methods Implementing RejectedExecutionHandler public void rejectedExecution (Runnable r , ThreadPoolExecutor e ); }
|