Example usage for Java java.nio.channels AsynchronousChannelGroup fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | awaitTermination(long timeout, TimeUnit unit) Awaits termination of the group. |
void | shutdown() Initiates an orderly shutdown of the group. |
void | shutdownNow() Shuts down the group and closes all open channels in the group. |
AsynchronousChannelGroup | withFixedThreadPool(int nThreads, ThreadFactory threadFactory) Creates an asynchronous channel group with a fixed thread pool. |
AsynchronousChannelGroup | withThreadPool(ExecutorService executor) Creates an asynchronous channel group with a given thread pool. |