RabbitMQ 队列最大优先级问题

RabbitMQ Queue Max Priority Issue

在 rabbitMQ 中 - 队列最大优先级

Map<String, Object> args = new HashMap<String, Object>();
args.put("x-max-priority", 10);
Queue queue = new Queue("myQueue", true, false, false, args);

但是当我生成优先级为 11、10、2 的消息时。我也收到 优先级为 11 的消息

Messages without a priority property are treated as if their priority were 0. Messages with a priority which is higher than the queue's maximum are treated as if they were published with the maximum priority.

Rabbit MQ priority reference