activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franz1981 <...@git.apache.org>
Subject [GitHub] activemq-artemis pull request #2488: ARTEMIS-196 Implement Consumer Priority
Date Thu, 03 Jan 2019 12:40:57 GMT
Github user franz1981 commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/2488#discussion_r244987340
  
    --- Diff: artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPSessionCallback.java
---
    @@ -233,6 +239,11 @@ public Object createSender(ProtonServerSenderContext protonSender,
           return consumer;
        }
     
    +   private int getPriority(Map<Symbol, Object> properties) {
    +      Integer value = properties == null ? null : (Integer) properties.get(PRIORITY);
    --- End diff --
    
    I would use a cast to `Number` and call `Number::byteValue`


---

Mime
View raw message