AsynchronousChannelGroup function ( ExecutorService arg0 ) { return AsynchronousChannelProvider . provider ( ) . openAsynchronousChannelGroup ( arg0 , 0 ) ; }
creates an asynchronous channel group with a given thread pool . the executor parameter is an executorservice thatexecutes tasks submitted to dispatch completion results for operations initiated on asynchronous channels in the group . care should be taken when configuring the executor service . it should support direct handoff or unbounded queuing of submitted tasks , and the thread that invokes the executorservice #execute execute method should never invoke the taskdirectly . an implementation may mandate additional constraints . the executor is intended to be used exclusively by the resulting asynchronous channel group . termination of the group results in the orderly executorservice #shutdown shutdown of the executorservice . shutting down the executor service by other means results in unspecified behavior . the group is created by invoking the asynchronouschannelprovider #openasynchronouschannelgroup executorservice , int openasynchronouschannelgroup executorservice , int method of the system-widedefault asynchronouschannelprovider object with an initialsize of 0 . concode_field_sep AsynchronousChannelProvider provider concode_field_sep AsynchronousChannelGroup withFixedThreadPool concode_elem_sep AsynchronousChannelProvider provider concode_elem_sep boolean isTerminated concode_elem_sep boolean awaitTermination concode_elem_sep AsynchronousChannelGroup withCachedThreadPool concode_elem_sep void shutdownNow concode_elem_sep void shutdown concode_elem_sep boolean isShutdown