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 usually using {@link ChannelGroup#close()}, and
- call {@link #releaseExternalResources()}.
For detailed transport-specific information on shutting down a factory, please refer to the Javadoc of {@link ChannelFactory}'s subtypes, such as {@link NioServerSocketChannelFactory}.
@apiviz.landmark
@apiviz.has com.facebook.presto.jdbc.internal.netty.channel.Channel oneway - - creates
@apiviz.exclude ^org\.jboss\.netty\.channel\.([a-z]+\.)+.*ChannelFactory$