shutdown() should be OK too

This commit is contained in:
Trustin Lee 2008-09-10 12:11:40 +00:00
parent 20bbd3e38f
commit 9d4e51c7e0
4 changed files with 8 additions and 8 deletions

View File

@ -76,8 +76,8 @@ import org.jboss.netty.channel.socket.SocketChannel;
* *
* <ol> * <ol>
* <li>close all channels created by the factory,</li> * <li>close all channels created by the factory,</li>
* <li>call {@link ExecutorService#shutdownNow()} for all executors which were * <li>call {@link ExecutorService#shutdownNow()} or {@link ExecutorService#shutdown()}
* specified to create the factory, and</li> * for all executors which were specified to create the factory, and</li>
* <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)} * <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)}
* until it returns {@code true}.</li> * until it returns {@code true}.</li>
* </ol> * </ol>

View File

@ -79,8 +79,8 @@ import org.jboss.netty.channel.socket.ServerSocketChannelFactory;
* <ol> * <ol>
* <li>unbind all channels created by the factory, * <li>unbind all channels created by the factory,
* <li>close all child channels accepted by the unbound channels,</li> * <li>close all child channels accepted by the unbound channels,</li>
* <li>call {@link ExecutorService#shutdownNow()} for all executors which were * <li>call {@link ExecutorService#shutdownNow()} or {@link ExecutorService#shutdown()}
* specified to create the factory, and</li> * for all executors which were specified to create the factory, and</li>
* <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)} * <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)}
* until it returns {@code true}.</li> * until it returns {@code true}.</li>
* </ol> * </ol>

View File

@ -62,8 +62,8 @@ import org.jboss.netty.channel.socket.SocketChannel;
* *
* <ol> * <ol>
* <li>close all channels created by the factory,</li> * <li>close all channels created by the factory,</li>
* <li>call {@link ExecutorService#shutdownNow()} for the {@code workerExecutor} * <li>call {@link ExecutorService#shutdownNow()} or {@link ExecutorService#shutdown()}
* which was specified to create the factory, and</li> * for the {@code workerExecutor} which was specified to create the factory, and</li>
* <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)} * <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)}
* until it returns {@code true}.</li> * until it returns {@code true}.</li>
* </ol> * </ol>

View File

@ -74,8 +74,8 @@ import org.jboss.netty.channel.socket.ServerSocketChannelFactory;
* <ol> * <ol>
* <li>unbind all channels created by the factory, * <li>unbind all channels created by the factory,
* <li>close all child channels accepted by the unbound channels,</li> * <li>close all child channels accepted by the unbound channels,</li>
* <li>call {@link ExecutorService#shutdownNow()} for all executors which were * <li>call {@link ExecutorService#shutdownNow()} or {@link ExecutorService#shutdown()}
* specified to create the factory, and</li> * for all executors which were specified to create the factory, and</li>
* <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)} * <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)}
* until it returns {@code true}.</li> * until it returns {@code true}.</li>
* </ol> * </ol>