public final class ByCallerThreadGroupPolicy extends Object implements RejectedExecutionHandler
RejectedExecutionHandler implementation to use according to the ThreadGroup of the
current thread.ThreadPoolExecutor.AbortPolicy,
WaitPolicy| Constructor and Description |
|---|
ByCallerThreadGroupPolicy(Set<ThreadGroup> waitGroups)
Builds a new
ByCallerThreadGroupPolicy with the given waitGroups. |
| Modifier and Type | Method and Description |
|---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor executor) |
public ByCallerThreadGroupPolicy(Set<ThreadGroup> waitGroups)
ByCallerThreadGroupPolicy with the given waitGroups.waitGroups - the group of threads for which a WaitPolicy will be applied. For the rest, an ThreadPoolExecutor.AbortPolicy
will be applied.public void rejectedExecution(Runnable r, ThreadPoolExecutor executor)
rejectedExecution in interface RejectedExecutionHandlerCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.