If the future is complete before the listener is added it will still notify the 
listener once it is added.

> Am 15.07.2016 um 05:29 schrieb Ming <[email protected]>:
> 
> Hi,
> 
> If a channel is first connected, and then add a listener, would it be 
> possible that the listener could not capture the connected event? For example 
> in HexDumpProxyFrontendHandler, what if a channel is connected (let's assume 
> it is connected super fast) before the listener is added? 
> 
> @Override
>     public void channelActive(ChannelHandlerContext ctx) {
>         ...
>         ChannelFuture f = b.connect(remoteHost, remotePort);
>         outboundChannel = f.channel();
>         f.addListener(new ChannelFutureListener() {
>             @Override
>             public void operationComplete(ChannelFuture future) {
>                 ...
>             }
>         }
>     });
>     }
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Netty discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/netty/54f46fd9-c6fb-474b-9721-d9f1cf803f2a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/BF9D810A-BAAB-4EA9-92A1-B94C0226B802%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to