ExecutorCompletionService Constructors
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
ExecutorCompletionService(IExecutor) |
Creates an ExecutorCompletionService using the supplied
executor for base task execution and a
|
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.
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.
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
- 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.