AsynchronousChannelProvider.OpenAsynchronousChannelGroup Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OpenAsynchronousChannelGroup(IExecutorService, Int32) |
Constructs a new asynchronous channel group with the given thread pool. |
OpenAsynchronousChannelGroup(Int32, IThreadFactory) |
Constructs a new asynchronous channel group with a fixed thread pool. |
OpenAsynchronousChannelGroup(IExecutorService, Int32)
Constructs a new asynchronous channel group with the given thread pool.
[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
Parameters
- executor
- IExecutorService
The thread pool
- initialSize
- Int32
A value >=0
or a negative value for implementation
specific default
Returns
A new asynchronous channel group
- Attributes
Remarks
Constructs a new asynchronous channel group with the given thread pool.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
OpenAsynchronousChannelGroup(Int32, IThreadFactory)
Constructs a new asynchronous channel group with a fixed thread pool.
[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
Parameters
- nThreads
- Int32
The number of threads in the pool
- threadFactory
- IThreadFactory
The factory to use when creating new threads
Returns
A new asynchronous channel group
- Attributes
Remarks
Constructs a new asynchronous channel group with a fixed thread pool.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.