@FunctionalInterface public interface CommandPriorityCalculator
CommandMessage based on its content. Higher value means higher priority.| Modifier and Type | Method and Description |
|---|---|
static CommandPriorityCalculator |
defaultCommandPriorityCalculator()
Returns a default implementation of the
CommandPriorityCalculator, always returning priority 0. |
int |
determinePriority(CommandMessage<?> command)
Determines the priority of the given
command. |
int determinePriority(CommandMessage<?> command)
command. The higher the returned value, the higher the priority is.command - a CommandMessage to prioritizeint defining the priority of the given commandstatic CommandPriorityCalculator defaultCommandPriorityCalculator()
CommandPriorityCalculator, always returning priority 0.CommandMessage to prioritize to the default of priority 0Copyright © 2010–2023. All rights reserved.