Closed: (NETTY-85) Global Channel registry

Trustin Lee tlee at redhat.com
Mon Dec 1 11:49:35 EST 2008


Hi Frederic,

I'm not sure I understood your question correctly, but let me try to
answer.  Thanks for the feed back though. :)

ChannelGroup can contain any type of channel, and therefore, a
ChannelGroup can contain server socket channel, accepted socket channel,
and client socket channel, needless to say any channel type which will
be implemented in the future.

Also, you can even add one Channel to more than one ChannelGroup.

However, ChannelGroup doesn't guarantee the order the operation is
performed, so you might want to close the parent channel first as you
asked.  Are you suggesting that the parent channels should be closed
first?  I think it's a good idea.  Please let me know if you have an
idea to improve the current API and its implementation.

Thanks,
Trustin

On Tue, Dec 02, 2008 at 12:41:35AM +0900, Frederic Bregier wrote:
> 
> Hi Trustin,
> 
> I've got one question:
> What about the two kinds of channels for the server part
> (the one holding the configuration so as the parent
> and those as children, the true one) ?
> 
> Do we have to get two ChannelGroup or can we put all channels
> in the same ChannelGroup?
> I believed that closing parent channel first should be done, right ?
> 
> Perhaps I'm missing something?
> 
> Frederic
> 
> -----
> Hardware/Software Architect
 
-- 
Trustin Lee, Principal Software Engineer, JBoss, a division of Red Hat
--
what we call human nature in actuality is human habit
--
http://gleamynode.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/netty-dev/attachments/20081202/09b69aa8/attachment.bin 


More information about the netty-dev mailing list