public abstract class AbstractByCallerPolicy extends Object
ThreadType of the threads used when dispatching tasks.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractByCallerPolicy(Set<ThreadGroup> waitGroups,
Set<ThreadGroup> runCpuLightWhenTargetBusyGroups,
ThreadGroup parentGroup)
Builds a new
AbstractByCallerPolicy with the given waitGroups. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isRunCpuLightWhenTargetBusyThread(ThreadGroup threadGroup) |
protected boolean |
isSchedulerThread(ThreadGroup threadGroup) |
protected boolean |
isWaitGroupThread(ThreadGroup threadGroup) |
protected AbstractByCallerPolicy(Set<ThreadGroup> waitGroups, Set<ThreadGroup> runCpuLightWhenTargetBusyGroups, ThreadGroup parentGroup)
AbstractByCallerPolicy 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.runCpuLightWhenTargetBusyGroups - the group of threads for which a ThreadPoolExecutor.CallerRunsPolicy will be applied when
dispatching to cpu-light.parentGroup - the SchedulerService parent ThreadGroupprotected boolean isWaitGroupThread(ThreadGroup threadGroup)
protected boolean isRunCpuLightWhenTargetBusyThread(ThreadGroup threadGroup)
protected boolean isSchedulerThread(ThreadGroup threadGroup)
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.