@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 command
static CommandPriorityCalculator defaultCommandPriorityCalculator()
CommandPriorityCalculator
, always returning priority 0
.CommandMessage
to prioritize to the default of priority 0
Copyright © 2010–2020. All rights reserved.