public class Scheduler.ShutdownHandler
extends java.lang.Object
implements java.util.concurrent.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 and Type | Field and Description |
|---|---|
private java.util.concurrent.RejectedExecutionHandler |
poolHandler |
| Modifier | Constructor and Description |
|---|---|
protected |
ShutdownHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
rejectedExecution(java.lang.Runnable r,
java.util.concurrent.ThreadPoolExecutor executor) |
void |
setRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler poolHandler) |
public void setRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler poolHandler)
public void rejectedExecution(java.lang.Runnable r,
java.util.concurrent.ThreadPoolExecutor executor)
rejectedExecution in interface java.util.concurrent.RejectedExecutionHandler