AsynchronousChannelProvider.OpenAsynchronousChannelGroup Method

Definition

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.

Java documentation for java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousChannelGroup(java.util.concurrent.ExecutorService, int).

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.

Java documentation for java.nio.channels.spi.AsynchronousChannelProvider.openAsynchronousChannelGroup(int, java.util.concurrent.ThreadFactory).

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