[rabbitmq-discuss] make a consumer consume no more

Alvaro Videla videlalvaro at gmail.com
Mon Sep 12 10:21:55 BST 2011


As you can see here: http://www.rabbitmq.com/amqp-0-9-1-quickref.html#basic.cancel

basic.cancel expects the consumer-tag as argument. When you subscribe to a queue you will get the "consumer-tag" for that queue. Or you could set the tag yourself. Then when you call basic.cancel with that consumer tag then the consumer will stop consuming from that queue only.

Regards,

Alvaro

On Sep 12, 2011, at 11:07 AM, PADIOU Pierre-Marie (MORPHO) wrote:

> Thanks for the answer.
>  
> What if the consumer was consuming from a set of queues, and I’d like it to stop consuming from only one of them?
>  
> Pierre-Marie
>  
> From: Alvaro Videla [mailto:videlalvaro at gmail.com] 
> Sent: Friday, September 09, 2011 3:10 PM
> To: PADIOU Pierre-Marie (MORPHO)
> Cc: rabbitmq-discuss at lists.rabbitmq.com
> Subject: Re: [rabbitmq-discuss] make a consumer consume no more
>  
> Take a look at this AMQP method: http://www.rabbitmq.com/amqp-0-9-1-quickref.html#basic.cancel
> 
> On Fri, Sep 9, 2011 at 3:02 PM, PADIOU Pierre-Marie (MORPHO) <pierre-marie.padiou at morpho.com> wrote:
> I realize my message was unclear.
>  
> I do not want to put back a message to a queue. I just would like to tell a consumer not to consume anymore from a particular queue.
>  
> Pierre-Marie
>  
> From: PADIOU Pierre-Marie (MORPHO) 
> Sent: Friday, September 09, 2011 3:01 PM
> To: rabbitmq-discuss at lists.rabbitmq.com
> Subject: make a consumer consume no more
>  
> Hello,
>  
> Is there a way for a consumer to « un-consume » from a queue ?
>  
> Thanks,
>  
> Pierre-Marie
> #
> 
> " Ce courriel et les documents qui lui sont joints peuvent contenir des informations confidentielles ou ayant un caractère privé. S'ils ne vous sont pas destinés, nous vous signalons qu'il est strictement interdit de les divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit le contenu. Si ce message vous a été transmis par erreur, merci d'en informer l'expéditeur et de supprimer immédiatement de votre système informatique ce courriel ainsi que tous les documents qui y sont attachés."
> 
> ******
> 
> " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system."
> 
> #
> 
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> 
>  
> #
> " Ce courriel et les documents qui lui sont joints peuvent contenir des informations confidentielles ou ayant un caractère privé. S'ils ne vous sont pas destinés, nous vous signalons qu'il est strictement interdit de les divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit le contenu. Si ce message vous a été transmis par erreur, merci d'en informer l'expéditeur et de supprimer immédiatement de votre système informatique ce courriel ainsi que tous les documents qui y sont attachés."
> ******
> " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system."
> #

Sent form my Nokia 1100



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110912/ac72dd2b/attachment.htm>


More information about the rabbitmq-discuss mailing list