More explanation on the characteristics of bootstraps

This commit is contained in:
Trustin Lee 2008-09-24 09:55:19 +00:00
parent 008f7c394e
commit 0b8687cdeb
2 changed files with 18 additions and 0 deletions

View File

@ -90,6 +90,15 @@ import org.jboss.netty.channel.SimpleChannelHandler;
* }
* </pre>
*
* <h3>Applying different settings for different {@link Channel}s</h3>
*
* {@link ClientBootstrap} is just a helper class. It neither allocates nor
* manages any resources. What manages the resources is the
* {@link ChannelFactory} implementation you specified in the constructor of
* {@link ClientBootstrap}. Therefore, it is OK to create as many
* {@link ClientBootstrap} instances as you want to apply different settings
* for different {@link Channel}s.
*
* @author The Netty Project (netty-dev@lists.jboss.org)
* @author Trustin Lee (tlee@redhat.com)
*

View File

@ -124,6 +124,15 @@ import org.jboss.netty.channel.SimpleChannelHandler;
* }
* </pre>
*
* <h3>Applying different settings for different {@link Channel}s</h3>
*
* {@link ServerBootstrap} is just a helper class. It neither allocates nor
* manages any resources. What manages the resources is the
* {@link ChannelFactory} implementation you specified in the constructor of
* {@link ServerBootstrap}. Therefore, it is OK to create as many
* {@link ServerBootstrap} instances as you want to apply different settings
* for different {@link Channel}s.
*
* @author The Netty Project (netty-dev@lists.jboss.org)
* @author Trustin Lee (tlee@redhat.com)
*