DefaultPriorityWrapper
@Deprecated public class PrioritySchedulerDefaultPriorityWrapper extends DefaultPriorityWrapper
PrioritySchedulerService
. The purpose of wrapping
like this would be to change the default priority from the wrapped instance. That way this
could be passed into other parts of code and although use the same thread pool, have different
default priorities. (this could be particularly useful when used in combination with
KeyDistributedExecutor
, or KeyDistributedScheduler
.Constructor and Description |
---|
PrioritySchedulerDefaultPriorityWrapper(PrioritySchedulerService scheduler,
TaskPriority defaultPriority)
Deprecated.
Constructs a new priority wrapper with a new default priority to use.
|
ensurePriority, execute, execute, getActiveTaskCount, getDefaultPriority, getMaxWaitForLowPriority, getQueuedTaskCount, getQueuedTaskCount, getWaitingForExecutionTaskCount, getWaitingForExecutionTaskCount, isShutdown, remove, remove, schedule, schedule, scheduleAtFixedRate, scheduleAtFixedRate, scheduleWithFixedDelay, scheduleWithFixedDelay, submit, submit, submit, submit, submit, submit, submitScheduled, submitScheduled, submitScheduled, submitScheduled, submitScheduled, submitScheduled
public PrioritySchedulerDefaultPriorityWrapper(PrioritySchedulerService scheduler, TaskPriority defaultPriority)
scheduler
- PriorityScheduler implementation to default todefaultPriority
- default priority for tasks submitted without a priority