[rabbitmq-discuss] amqpcpp | Temp Queue
Alan Antonuk
alan.antonuk at gmail.com
Thu Sep 5 08:09:01 BST 2013
Here's and example on creating a temp queue in rabbitmq-c:
https://github.com/alanxz/rabbitmq-c/blob/master/examples/amqp_consumer.c#L186
Essentially you need to pass a 0-length string as the queue-name when doing
a queue.declare (amqp_queue_declare()).
The generated name of the queue will be returned by the broker (in the
amqp_queue_declare_ok_t struct). You can use this to do a queue.delete
(amqp_queue_delete()) later or if its a queue declared with auto-delete
set, the queue will be destroyed when the consumer count falls to 0, or the
channel that created is closed.
-Alan
On Wed, Sep 4, 2013 at 11:49 PM, antony <antony.pulicken at gmail.com> wrote:
> Thanks Alan and sorry for the additional email.
>
> Do you have any example for creating temporary queue in rabbitmq-c?
>
> I have done it in Java using
>
> String queueName = channel.queueDeclare().getQueue();
>
> But not able to figure the corresponding thing in rabbitmq-c?
>
> Regards,
> Antony.
>
>
>
>
>
> --
> View this message in context:
> http://rabbitmq.1065348.n5.nabble.com/amqpcpp-Temp-Queue-tp29342p29361.html
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130905/7d5688f0/attachment.htm>
More information about the rabbitmq-discuss
mailing list