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