public class CallerRunsRejectOnShutdownPolicy extends ThreadPoolExecutor.AbortPolicy
execute
method. If
the executor was shutdown, it will instead throw a RejectedExecutionException
.Constructor and Description |
---|
CallerRunsRejectOnShutdownPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor executor) |
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor)
rejectedExecution
in interface RejectedExecutionHandler
rejectedExecution
in class ThreadPoolExecutor.AbortPolicy
Copyright © 2021 JBoss by Red Hat. All rights reserved.