Interface PriorityTaskSchedulers
public interface PriorityTaskSchedulers
Responsible for creating
Scheduler implementations relevant to the Axon Server connector.- Since:
- 4.6.0
- Author:
- Mitchell Herrijgers, Milan Savic
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic reactor.core.scheduler.SchedulerforPriority(ExecutorService delegate, long priority, AtomicLong taskSequence) Creates aSchedulerthat is compatible with anExecutorServicethat needs tasks that are submitted to be aPriorityTaskso that they can be prioritized.
-
Method Details
-
forPriority
static reactor.core.scheduler.Scheduler forPriority(ExecutorService delegate, long priority, AtomicLong taskSequence) Creates aSchedulerthat is compatible with anExecutorServicethat needs tasks that are submitted to be aPriorityTaskso that they can be prioritized.- Parameters:
delegate- The delegateExecutorServiceto use when submitting tasks.priority- The priority that any tasks submitted to the delegate will have.taskSequence- The task sequence used for ordering items with the same priority.- Returns:
- The
Schedulerobject that is compatible withPriorityTask. - See Also:
-