ExecutorCompletionService Constructors

Definition

Overloads

ExecutorCompletionService(IExecutor)

Creates an ExecutorCompletionService using the supplied executor for base task execution and a LinkedBlockingQueue as a completion queue.

ExecutorCompletionService(IExecutor, IBlockingQueue)

Creates an ExecutorCompletionService using the supplied executor for base task execution and the supplied queue as its completion queue.

ExecutorCompletionService(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

ExecutorCompletionService(IExecutor)

Creates an ExecutorCompletionService using the supplied executor for base task execution and a LinkedBlockingQueue as a completion queue.

[Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;)V", "")]
public ExecutorCompletionService (Java.Util.Concurrent.IExecutor? executor);
[<Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;)V", "")>]
new Java.Util.Concurrent.ExecutorCompletionService : Java.Util.Concurrent.IExecutor -> Java.Util.Concurrent.ExecutorCompletionService

Parameters

executor
IExecutor

the executor to use

Attributes

Exceptions

if executor is null

Remarks

Creates an ExecutorCompletionService using the supplied executor for base task execution and a LinkedBlockingQueue as a completion queue.

Java documentation for java.util.concurrent.ExecutorCompletionService.ExecutorCompletionService(java.util.concurrent.Executor).

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

ExecutorCompletionService(IExecutor, IBlockingQueue)

Creates an ExecutorCompletionService using the supplied executor for base task execution and the supplied queue as its completion queue.

[Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;Ljava/util/concurrent/BlockingQueue;)V", "")]
public ExecutorCompletionService (Java.Util.Concurrent.IExecutor? executor, Java.Util.Concurrent.IBlockingQueue? completionQueue);
[<Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;Ljava/util/concurrent/BlockingQueue;)V", "")>]
new Java.Util.Concurrent.ExecutorCompletionService : Java.Util.Concurrent.IExecutor * Java.Util.Concurrent.IBlockingQueue -> Java.Util.Concurrent.ExecutorCompletionService

Parameters

executor
IExecutor

the executor to use

completionQueue
IBlockingQueue

the queue to use as the completion queue normally one dedicated for use by this service. This queue is treated as unbounded -- failed attempted Queue.add operations for completed tasks cause them not to be retrievable.

Attributes

Remarks

Creates an ExecutorCompletionService using the supplied executor for base task execution and the supplied queue as its completion queue.

Java documentation for java.util.concurrent.ExecutorCompletionService.ExecutorCompletionService(java.util.concurrent.Executor, java.util.concurrent.BlockingQueue<java.util.concurrent.Future<V>>).

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

ExecutorCompletionService(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected ExecutorCompletionService (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.ExecutorCompletionService : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.ExecutorCompletionService

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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