[rabbitmq-discuss] duriable exchange and queue
Emile Joubert
emile at rabbitmq.com
Wed Nov 14 10:06:36 GMT 2012
Hi,
On 14/11/12 09:05, Feng He wrote:
> I didn't see how to declare an exchange or a queue with durability.
> So how will I do this?
https://github.com/ruby-amqp/amqp/blob/master/lib/amqp/exchange.rb#L251
https://github.com/ruby-amqp/amqp/blob/master/lib/amqp/queue.rb#L138
Both exchanges and queues can be declared with a boolean :durable option.
An example of a queue being declared durable can be found in the Ruby
tutorial implementation:
https://github.com/rabbitmq/rabbitmq-tutorials/blob/master/ruby/worker.rb#L8
-Emile
More information about the rabbitmq-discuss
mailing list