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