hannel.queueDeclareNoWait(queue_name, false, true, true, null);
声明队列,但是无序broker返回任何消息。
同时exchange声明时,也可以使用no-wait:
channel.queueDeclareNoWait(q, false, true, true, null);
绑定时也可以no-wait:
channel.queueBindNoWait(q, "amq.fanout", "", null);
hannel.queueDeclareNoWait(queue_name, false, true, true, null);
声明队列,但是无序broker返回任何消息。
同时exchange声明时,也可以使用no-wait:
channel.queueDeclareNoWait(q, false, true, true, null);
绑定时也可以no-wait:
channel.queueBindNoWait(q, "amq.fanout", "", null);