diff --git a/src/main/java/org/jboss/netty/handler/timeout/IdleStateHandler.java b/src/main/java/org/jboss/netty/handler/timeout/IdleStateHandler.java index b74ec7a55b..2d7c80b677 100644 --- a/src/main/java/org/jboss/netty/handler/timeout/IdleStateHandler.java +++ b/src/main/java/org/jboss/netty/handler/timeout/IdleStateHandler.java @@ -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()}. * * + * 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 The Netty Project * @author Trustin Lee * @version $Rev$, $Date$ diff --git a/src/main/java/org/jboss/netty/handler/timeout/ReadTimeoutHandler.java b/src/main/java/org/jboss/netty/handler/timeout/ReadTimeoutHandler.java index 2a56486cd4..f0927cd771 100644 --- a/src/main/java/org/jboss/netty/handler/timeout/ReadTimeoutHandler.java +++ b/src/main/java/org/jboss/netty/handler/timeout/ReadTimeoutHandler.java @@ -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()}. + * + * + * 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 The Netty Project * @author Trustin Lee diff --git a/src/main/java/org/jboss/netty/handler/timeout/WriteTimeoutHandler.java b/src/main/java/org/jboss/netty/handler/timeout/WriteTimeoutHandler.java index 81e2c6928a..81f7341957 100644 --- a/src/main/java/org/jboss/netty/handler/timeout/WriteTimeoutHandler.java +++ b/src/main/java/org/jboss/netty/handler/timeout/WriteTimeoutHandler.java @@ -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()}. * * + * 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 The Netty Project * @author Trustin Lee * @version $Rev$, $Date$