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