Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 803
نمايش فراداده

ThreadPoolExecutor.AbortPolicyjava.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 ); }