The main interface to a transport that creates a {@link Channel} associatedwith a certain communication entity such as a network socket. For example, the {@link NioServerSocketChannelFactory} creates a channel which has aNIO-based server socket as its underlying communication entity.
Once a new {@link Channel} is created, the {@link ChannelPipeline} whichwas specified as a parameter in the {@link #newChannel(ChannelPipeline)}is attached to the new {@link Channel}, and starts to handle all associated {@link ChannelEvent}s.
Graceful shutdown
To shut down a network application service which is managed by a factory. you should follow the following steps:
- close all channels created by the factory and their child channels, and
- call {@link #releaseExternalResources()}.
For detailed transport-specific information on shutting down a factory, please refer to the Javadoc of {@link ChannelFactory}'s subtypes.
@author The Netty Project (netty-dev@lists.jboss.org)
@author Trustin Lee (tlee@redhat.com)
@version $Rev: 536 $, $Date: 2008-11-28 20:18:21 +0900 (Fri, 28 Nov 2008) $
@apiviz.landmark
@apiviz.has org.jboss.netty.channel.Channel oneway - - creates