public class Scheduler.ShutdownHandler extends Object implements RejectedExecutionHandler
Scheduler.shutdownThreadPoolsAwaitingKilled() which kills the current master and children recursively.
If alternatively a shared ExecutorService used by the master and children
schedulers is shutdown from outside, then the Scheduler.ShutdownHandler is a hook calling current
Scheduler.describeStopped(boolean). The method Scheduler.describeStopped(boolean) is again shutting down children
schedulers recursively as well.| Modifier | Constructor and Description |
|---|---|
protected |
Scheduler.ShutdownHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor executor) |
void |
setRejectedExecutionHandler(RejectedExecutionHandler poolHandler) |
public void setRejectedExecutionHandler(RejectedExecutionHandler poolHandler)
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor)
rejectedExecution in interface RejectedExecutionHandlerCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.