Reference to message being written in case of exception caught

"이희승 (Trustin Lee)" trustin at gmail.com
Tue Nov 9 00:56:20 EST 2010


You could use ChannelFutureListener?

    final Object msg = ...;
    channel.write(msg).addListener(new ChannelFutureListener() {
        public void operationComplete(...) {
            msg...;
        }
    });

HTH

klmr57 wrote:
> Hi,
> right now, if message cant be set for various reasons, we get callback
> through channel handler exceptionCaught() method. but this method doesnt
> give any reference  to the object which is written to channel. is there a
> way to get reference to the message which is being written to channel in
> case of exception scenarios like server is shutdown etc.

-- 
Trustin Lee - http://gleamynode.net/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 290 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20101109/ded78913/attachment.bin 


More information about the netty-users mailing list