[rabbitmq-discuss] Queue declaration

Simon MacMullen simon at rabbitmq.com
Tue May 17 23:23:34 BST 2011


On 17/05/2011 11:19PM, Mari Muthu wrote:
> Hi,
>
>      1) What are the possible argument we can pass when i declare  the
> Queue. And when these arguments will be used.
>
> channel.queueDeclare(queue.getQueueName(), queue.isDurable(),
> queue.isExclusive(), queue.isAutoDelete(),
>              queue.getArguments());
>
> this arguments is  a map.

At the moment, two arguments are supported for queues: x-expires and 
x-message-ttl.

> 2) Can i say like these queue should be deleted after some day/date.
> Lets say if the queue is idle for 5 days then delete it(no
> consumer/publisher).

You want x-expires:

http://www.rabbitmq.com/extensions.html#queue-leases

Cheers, Simon


More information about the rabbitmq-discuss mailing list