shutdown() should be OK too
This commit is contained in:
parent
20bbd3e38f
commit
9d4e51c7e0
@ -76,8 +76,8 @@ import org.jboss.netty.channel.socket.SocketChannel;
|
||||
*
|
||||
* <ol>
|
||||
* <li>close all channels created by the factory,</li>
|
||||
* <li>call {@link ExecutorService#shutdownNow()} for all executors which were
|
||||
* specified to create the factory, and</li>
|
||||
* <li>call {@link ExecutorService#shutdownNow()} or {@link ExecutorService#shutdown()}
|
||||
* for all executors which were specified to create the factory, and</li>
|
||||
* <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)}
|
||||
* until it returns {@code true}.</li>
|
||||
* </ol>
|
||||
|
@ -79,8 +79,8 @@ import org.jboss.netty.channel.socket.ServerSocketChannelFactory;
|
||||
* <ol>
|
||||
* <li>unbind all channels created by the factory,
|
||||
* <li>close all child channels accepted by the unbound channels,</li>
|
||||
* <li>call {@link ExecutorService#shutdownNow()} for all executors which were
|
||||
* specified to create the factory, and</li>
|
||||
* <li>call {@link ExecutorService#shutdownNow()} or {@link ExecutorService#shutdown()}
|
||||
* for all executors which were specified to create the factory, and</li>
|
||||
* <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)}
|
||||
* until it returns {@code true}.</li>
|
||||
* </ol>
|
||||
|
@ -62,8 +62,8 @@ import org.jboss.netty.channel.socket.SocketChannel;
|
||||
*
|
||||
* <ol>
|
||||
* <li>close all channels created by the factory,</li>
|
||||
* <li>call {@link ExecutorService#shutdownNow()} for the {@code workerExecutor}
|
||||
* which was specified to create the factory, and</li>
|
||||
* <li>call {@link ExecutorService#shutdownNow()} or {@link ExecutorService#shutdown()}
|
||||
* for the {@code workerExecutor} which was specified to create the factory, and</li>
|
||||
* <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)}
|
||||
* until it returns {@code true}.</li>
|
||||
* </ol>
|
||||
|
@ -74,8 +74,8 @@ import org.jboss.netty.channel.socket.ServerSocketChannelFactory;
|
||||
* <ol>
|
||||
* <li>unbind all channels created by the factory,
|
||||
* <li>close all child channels accepted by the unbound channels,</li>
|
||||
* <li>call {@link ExecutorService#shutdownNow()} for all executors which were
|
||||
* specified to create the factory, and</li>
|
||||
* <li>call {@link ExecutorService#shutdownNow()} or {@link ExecutorService#shutdown()}
|
||||
* for all executors which were specified to create the factory, and</li>
|
||||
* <li>call {@link ExecutorService#awaitTermination(long, TimeUnit)}
|
||||
* until it returns {@code true}.</li>
|
||||
* </ol>
|
||||
|
Loading…
x
Reference in New Issue
Block a user