Share via


ForkJoinWorkerThread Constructors

Definition

Overloads

ForkJoinWorkerThread(ForkJoinPool)

Creates a ForkJoinWorkerThread operating in the given pool.

ForkJoinWorkerThread(IntPtr, JniHandleOwnership)

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

ForkJoinWorkerThread(ThreadGroup, ForkJoinPool, Boolean)

Creates a ForkJoinWorkerThread operating in the given thread group and pool, and with the given policy for preserving ThreadLocals.

ForkJoinWorkerThread(ForkJoinPool)

Creates a ForkJoinWorkerThread operating in the given pool.

[Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/ForkJoinPool;)V", "")]
protected ForkJoinWorkerThread(Java.Util.Concurrent.ForkJoinPool? pool);
[<Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/ForkJoinPool;)V", "")>]
new Java.Util.Concurrent.ForkJoinWorkerThread : Java.Util.Concurrent.ForkJoinPool -> Java.Util.Concurrent.ForkJoinWorkerThread

Parameters

pool
ForkJoinPool

the pool this thread works in

Attributes

Exceptions

if pool is null

Remarks

Creates a ForkJoinWorkerThread operating in the given pool.

Java documentation for java.util.concurrent.ForkJoinWorkerThread.ForkJoinWorkerThread(java.util.concurrent.ForkJoinPool).

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

ForkJoinWorkerThread(IntPtr, JniHandleOwnership)

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

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

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

ForkJoinWorkerThread(ThreadGroup, ForkJoinPool, Boolean)

Creates a ForkJoinWorkerThread operating in the given thread group and pool, and with the given policy for preserving ThreadLocals.

[Android.Runtime.Register(".ctor", "(Ljava/lang/ThreadGroup;Ljava/util/concurrent/ForkJoinPool;Z)V", "", ApiSince=36)]
protected ForkJoinWorkerThread(Java.Lang.ThreadGroup? group, Java.Util.Concurrent.ForkJoinPool? pool, bool preserveThreadLocals);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/ThreadGroup;Ljava/util/concurrent/ForkJoinPool;Z)V", "", ApiSince=36)>]
new Java.Util.Concurrent.ForkJoinWorkerThread : Java.Lang.ThreadGroup * Java.Util.Concurrent.ForkJoinPool * bool -> Java.Util.Concurrent.ForkJoinWorkerThread

Parameters

group
ThreadGroup

if non-null, the thread group for this thread. Otherwise, the thread group is chosen by the security manager if present, else set to the current thread's thread group.

pool
ForkJoinPool

the pool this thread works in

preserveThreadLocals
Boolean

if true, always preserve the values of ThreadLocal variables across tasks; otherwise they may be cleared.

Attributes

Remarks

Creates a ForkJoinWorkerThread operating in the given thread group and pool, and with the given policy for preserving ThreadLocals.

Added in 19.

Java documentation for java.util.concurrent.ForkJoinWorkerThread.ForkJoinWorkerThread(java.lang.ThreadGroup, java.util.concurrent.ForkJoinPool, boolean).

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