[rabbitmq-discuss] handleShutdownSignal consumer callback

cw storm cwstorm at gmail.com
Thu Feb 13 16:31:00 GMT 2014


Thanks MK.

That worked.


On Thu, Feb 13, 2014 at 11:19 AM, cw storm <cwstorm at gmail.com> wrote:

> Thanks MK.
>
> So, by implementing this block of code in my java service, whenever I
> perform a force close connection via the web console, the below block code
> will be executed, right?
>
> connection.addShutdownListener(new ShutdownListener() {
>     public void shutdownCompleted(ShutdownSignalException cause)
>     {
>         ...
>     }
> });
>
>
>
> On Thu, Feb 13, 2014 at 11:07 AM, Michael Klishin <mklishin at gopivotal.com>wrote:
>
>>
>> On 13 Feb 2014, at 20:03, cw storm <cwstorm at gmail.com> wrote:
>>
>> > Also, I was wondering, on the RMQ web console, when I manually force a
>> close connection, is there any callback function/service being issue at all?
>>
>> RabbitMQ will use connection.close which in the Java client will cause a
>> shutdown sequence.
>>
>> MK
>>
>> Software Engineer, Pivotal/RabbitMQ
>>
>>
>> _______________________________________________
>> 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/20140213/a2927471/attachment.html>


More information about the rabbitmq-discuss mailing list