edu.emory.mathcs.backport.java.util.concurrent

Class ThreadPoolExecutor.AbortPolicy

public static class ThreadPoolExecutor.AbortPolicy extends Object implements RejectedExecutionHandler

A handler for rejected tasks that throws a {@code RejectedExecutionException}.
Constructor Summary
AbortPolicy()
Creates an {@code AbortPolicy}.
Method Summary
voidrejectedExecution(Runnable r, ThreadPoolExecutor e)
Always throws RejectedExecutionException.

Constructor Detail

AbortPolicy

public AbortPolicy()
Creates an {@code AbortPolicy}.

Method Detail

rejectedExecution

public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
Always throws RejectedExecutionException.

Parameters: r the runnable task requested to be executed e the executor attempting to execute this task

Throws: RejectedExecutionException always.