Java In A Nutshell, 5th Edition

ThreadPoolExecutor.AbortPolicy java.util.concurrent

Java 5.0

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

Категории