edu.emory.mathcs.backport.java.util.concurrent
public static class ThreadPoolExecutor.AbortPolicy extends java.lang.Object implements RejectedExecutionHandler
RejectedExecutionException
.Constructor and Description |
---|
ThreadPoolExecutor.AbortPolicy()
Creates an
AbortPolicy . |
Modifier and Type | Method and Description |
---|---|
void |
rejectedExecution(java.lang.Runnable r,
ThreadPoolExecutor e)
Always throws RejectedExecutionException.
|
public ThreadPoolExecutor.AbortPolicy()
AbortPolicy
.public void rejectedExecution(java.lang.Runnable r, ThreadPoolExecutor e)
rejectedExecution
in interface RejectedExecutionHandler
r
- the runnable task requested to be executede
- the executor attempting to execute this taskRejectedExecutionException
- always.