AsynchronousChannelProvider.OpenAsynchronousChannelGroup 方法      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| OpenAsynchronousChannelGroup(IExecutorService, Int32) | 
						 使用给定的线程池构造新的异步通道组。  | 
        	
| OpenAsynchronousChannelGroup(Int32, IThreadFactory) | 
						 使用固定线程池构造新的异步通道组。  | 
        	
OpenAsynchronousChannelGroup(IExecutorService, Int32)
使用给定的线程池构造新的异步通道组。
[Android.Runtime.Register("openAsynchronousChannelGroup", "(Ljava/util/concurrent/ExecutorService;I)Ljava/nio/channels/AsynchronousChannelGroup;", "GetOpenAsynchronousChannelGroup_Ljava_util_concurrent_ExecutorService_IHandler", ApiSince=26)]
public abstract Java.Nio.Channels.AsynchronousChannelGroup? OpenAsynchronousChannelGroup(Java.Util.Concurrent.IExecutorService? executor, int initialSize);
	[<Android.Runtime.Register("openAsynchronousChannelGroup", "(Ljava/util/concurrent/ExecutorService;I)Ljava/nio/channels/AsynchronousChannelGroup;", "GetOpenAsynchronousChannelGroup_Ljava_util_concurrent_ExecutorService_IHandler", ApiSince=26)>]
abstract member OpenAsynchronousChannelGroup : Java.Util.Concurrent.IExecutorService * int -> Java.Nio.Channels.AsynchronousChannelGroup
	参数
- executor
 - IExecutorService
 
线程池
- initialSize
 - Int32
 
实现特定默认值的值 >=0 或负值
返回
新的异步通道组
- 属性
 
注解
使用给定的线程池构造新的异步通道组。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
OpenAsynchronousChannelGroup(Int32, IThreadFactory)
使用固定线程池构造新的异步通道组。
[Android.Runtime.Register("openAsynchronousChannelGroup", "(ILjava/util/concurrent/ThreadFactory;)Ljava/nio/channels/AsynchronousChannelGroup;", "GetOpenAsynchronousChannelGroup_ILjava_util_concurrent_ThreadFactory_Handler", ApiSince=26)]
public abstract Java.Nio.Channels.AsynchronousChannelGroup? OpenAsynchronousChannelGroup(int nThreads, Java.Util.Concurrent.IThreadFactory? threadFactory);
	[<Android.Runtime.Register("openAsynchronousChannelGroup", "(ILjava/util/concurrent/ThreadFactory;)Ljava/nio/channels/AsynchronousChannelGroup;", "GetOpenAsynchronousChannelGroup_ILjava_util_concurrent_ThreadFactory_Handler", ApiSince=26)>]
abstract member OpenAsynchronousChannelGroup : int * Java.Util.Concurrent.IThreadFactory -> Java.Nio.Channels.AsynchronousChannelGroup
	参数
- nThreads
 - Int32
 
池中的线程数
- threadFactory
 - IThreadFactory
 
创建新线程时要使用的工厂
返回
新的异步通道组
- 属性
 
注解
使用固定线程池构造新的异步通道组。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。