[rabbitmq-discuss] Curious question about the consumer callback function handleShutDownSignal
cw storm
cwstorm at gmail.com
Tue Feb 18 15:06:18 GMT 2014
My my design, both my connection and channel are related. If the
connection is force (UI) or restart via the command line, it'll also close
the channel. That means if you have handleShutDownSignal implemented,
whatever inside that block will be executed. Well, inside that block of
code, I establish a new connection/channel. My question is and probably
already know the answer but maybe I can determine ahead of time if I should
establish a new connection/channel or not. I'm asking because in
development, it's annoying that the consumer subscription always
re-establish itself when I manually close the connection either via UI or
command console. I'm sure I can probably come up with a creative way to
handle it but if there's something better, I'm all ears.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140218/d10574c3/attachment.html>
More information about the rabbitmq-discuss
mailing list