amqp-client icon indicating copy to clipboard operation
amqp-client copied to clipboard

Give option for AddBinding method to only call consume

Open dnatic09 opened this issue 8 years ago • 2 comments

Our AMQP servers do not permit our users to perform declareExchange nor queueBind. This simple solution allows the queue consumer to specify that their binding only needs to consume. Please feel free to comment on our solution. We tried not to make any breaking changes. If there is a way to do this with the existing library, we'd happily close our PR and switch to your implementation.

THANKS! The Weather Channel SUN Team

dnatic09 avatar Feb 24 '17 19:02 dnatic09

I won't be able to look into this until the end of the week, but couldn't you instead send an AddQueue message to the consumer, with the passive flag set to true ? I think the result would be the same ? (haven't tried though) Thanks

sstone avatar Feb 27 '17 16:02 sstone

I think you are correct about this. We will probably look at switching our code to that implementation. Much easier. I would have to test it.

dnatic09 avatar Feb 27 '17 18:02 dnatic09