开发者社区> 问答> 正文

rabbitmq3.5.6 优先队列报错?报错

 inequivalent arg 'x-max-priority' for queue 'queue' in vhost '/': received the value '10' of type 'signedint' but current is none, class-id=50, method-id=10)

我是这样设置的: Map<String, Object> args = new HashMap<String, Object>();  
         args.put("x-max-priority", 10);  
         channel.queueDeclare(endpointName, false, false, false, args);



展开
收起
爱吃鱼的程序员 2020-06-09 10:55:47 858 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    是不是之前有一个同名的队列,但是没有使用优先队列


    2020-06-09 10:56:05
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
RocketMQ Client-GO 介绍 立即下载
RocketMQ Prometheus Exporter 打造定制化 DevOps 平台 立即下载
基于 RocketMQ Prometheus Exporter 打造定制化 DevOps 平台 立即下载