Class LifecycleRejectedExecutionHandler
- java.lang.Object
-
- java.util.concurrent.ThreadPoolExecutor.AbortPolicy
-
- org.infinispan.commons.util.concurrent.LifecycleRejectedExecutionHandler
-
- All Implemented Interfaces:
RejectedExecutionHandler
public class LifecycleRejectedExecutionHandler extends ThreadPoolExecutor.AbortPolicy
A handler for rejected tasks that always throws aIllegalLifecycleStateException
.- Since:
- 11.0
- Author:
- wburns
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LifecycleRejectedExecutionHandler
getInstance()
void
rejectedExecution(Runnable r, ThreadPoolExecutor executor)
-
-
-
Method Detail
-
getInstance
public static LifecycleRejectedExecutionHandler getInstance()
-
rejectedExecution
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor)
-
-