开发者社区 问答 正文

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 964 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

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


    2020-06-09 10:56:05
    赞同 展开评论
问答分类:
问答标签:
问答地址: