This commit is contained in:
Trustin Lee 2010-02-08 06:11:25 +00:00
parent 926fdcc7aa
commit ee2ba2629e
3 changed files with 13 additions and 4 deletions

View File

@ -98,9 +98,12 @@ import org.jboss.netty.util.TimerTask;
* ...
* bootstrap.setPipelineFactory(new MyPipelineFactory(timer));
* ...
* // To shut down, call {@link #releaseExternalResources()} or {@link Timer#stop()}.
* </pre>
*
* The {@link Timer} which was specified when the {@link ReadTimeoutHandler} is
* created should be stopped manually by calling {@link #releaseExternalResources()}
* or {@link Timer#stop()} when your application shuts down.
*
* @author <a href="http://www.jboss.org/netty/">The Netty Project</a>
* @author <a href="http://gleamynode.net/">Trustin Lee</a>
* @version $Rev$, $Date$

View File

@ -60,7 +60,11 @@ import org.jboss.netty.util.TimerTask;
* ...
* bootstrap.setPipelineFactory(new MyPipelineFactory(timer));
* ...
* // To shut down, call {@link #releaseExternalResources()} or {@link Timer#stop()}.
* </pre>
*
* The {@link Timer} which was specified when the {@link ReadTimeoutHandler} is
* created should be stopped manually by calling {@link #releaseExternalResources()}
* or {@link Timer#stop()} when your application shuts down.
*
* @author <a href="http://www.jboss.org/netty/">The Netty Project</a>
* @author <a href="http://gleamynode.net/">Trustin Lee</a>

View File

@ -60,10 +60,12 @@ import org.jboss.netty.util.TimerTask;
* {@link Timer} timer = new {@link HashedWheelTimer}();
* ...
* bootstrap.setPipelineFactory(new MyPipelineFactory(timer));
* ...
* // To shut down, call {@link #releaseExternalResources()} or {@link Timer#stop()}.
* </pre>
*
* The {@link Timer} which was specified when the {@link ReadTimeoutHandler} is
* created should be stopped manually by calling {@link #releaseExternalResources()}
* or {@link Timer#stop()} when your application shuts down.
*
* @author <a href="http://www.jboss.org/netty/">The Netty Project</a>
* @author <a href="http://gleamynode.net/">Trustin Lee</a>
* @version $Rev$, $Date$