Class Scheduler.ShutdownHandler
- java.lang.Object
-
- org.apache.maven.surefire.junitcore.pc.Scheduler.ShutdownHandler
-
- All Implemented Interfaces:
java.util.concurrent.RejectedExecutionHandler
- Enclosing class:
- Scheduler
public class Scheduler.ShutdownHandler extends java.lang.Object implements java.util.concurrent.RejectedExecutionHandlerThere is a way to shutdown the hierarchy of schedulers. You can do it in master scheduler viaScheduler.shutdownThreadPoolsAwaitingKilled()which kills the current master and children recursively. If alternatively a sharedExecutorServiceused by the master and children schedulers is shutdown from outside, then theScheduler.ShutdownHandleris a hook calling currentScheduler.describeStopped(boolean). The methodScheduler.describeStopped(boolean)is again shutting down children schedulers recursively as well.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedShutdownHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrejectedExecution(java.lang.Runnable r, java.util.concurrent.ThreadPoolExecutor executor)voidsetRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler poolHandler)
-
-
-
Method Detail
-
setRejectedExecutionHandler
public void setRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler poolHandler)
-
rejectedExecution
public void rejectedExecution(java.lang.Runnable r, java.util.concurrent.ThreadPoolExecutor executor)- Specified by:
rejectedExecutionin interfacejava.util.concurrent.RejectedExecutionHandler
-
-