Package com.lucidworks.apollo.component
Class DefaultExecutorComponent.AbortPolicy
java.lang.Object
com.lucidworks.apollo.component.DefaultExecutorComponent.AbortPolicy
- All Implemented Interfaces:
RejectedExecutionHandler
- Enclosing class:
- DefaultExecutorComponent
public static class DefaultExecutorComponent.AbortPolicy
extends Object
implements RejectedExecutionHandler
Just like the java.util.concurrent.ThreadPoolExecutor.AbortPolicy, but with a better error message.
A handler for rejected tasks that throws a
RejectedExecutionException.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAlways throws RejectedExecutionException.
-
Constructor Details
-
AbortPolicy
public AbortPolicy()Creates anAbortPolicy.
-
-
Method Details
-
rejectedExecution
Always throws RejectedExecutionException.- Specified by:
rejectedExecutionin interfaceRejectedExecutionHandler- Parameters:
r- the runnable task requested to be executede- the executor attempting to execute this task- Throws:
RejectedExecutionException- always.
-