---
title: "rabbitmq-queueDeclareNoWait"
author: "蝶盟紫"
date: "2015-12-02T16:18:13Z"
tags: []
categories: ["企业架构"]
slug: "rabbitmq-queuedeclarenowait"
draft: false
lastmod: "2015-11-30T22:00:30Z"
id: 2260666
url: "https://joandora.iteye.com/blog/2260666"
---

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);