mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@984489 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1f85f4b685
commit
612b044169
|
@ -237,8 +237,8 @@ public class SimplePriorityMessageDispatchChannel implements MessageDispatchChan
|
||||||
protected int getPriority(MessageDispatch message) {
|
protected int getPriority(MessageDispatch message) {
|
||||||
int priority = javax.jms.Message.DEFAULT_PRIORITY;
|
int priority = javax.jms.Message.DEFAULT_PRIORITY;
|
||||||
if (message.getMessage() != null) {
|
if (message.getMessage() != null) {
|
||||||
Math.max(message.getMessage().getPriority(), 0);
|
priority = Math.max(message.getMessage().getPriority(), 0);
|
||||||
priority = Math.min(priority, 9);
|
priority = Math.min(priority, 9);
|
||||||
}
|
}
|
||||||
return priority;
|
return priority;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue