Udostępnij za pośrednictwem


ThreadPoolExecutor.ThreadFactory Property

Definition

Returns the thread factory used to create new threads. -or- Sets the thread factory used to create new threads.

public virtual Java.Util.Concurrent.IThreadFactory? ThreadFactory { [Android.Runtime.Register("getThreadFactory", "()Ljava/util/concurrent/ThreadFactory;", "GetGetThreadFactoryHandler")] get; [Android.Runtime.Register("setThreadFactory", "(Ljava/util/concurrent/ThreadFactory;)V", "GetSetThreadFactory_Ljava_util_concurrent_ThreadFactory_Handler")] set; }
[<get: Android.Runtime.Register("getThreadFactory", "()Ljava/util/concurrent/ThreadFactory;", "GetGetThreadFactoryHandler")>]
[<set: Android.Runtime.Register("setThreadFactory", "(Ljava/util/concurrent/ThreadFactory;)V", "GetSetThreadFactory_Ljava_util_concurrent_ThreadFactory_Handler")>]
member this.ThreadFactory : Java.Util.Concurrent.IThreadFactory with get, set

Property Value

the current thread factory

Attributes

Exceptions

if threadFactory is null

Remarks

Property getter documentation:

Returns the thread factory used to create new threads.

Java documentation for java.util.concurrent.ThreadPoolExecutor.getThreadFactory().

Property setter documentation:

Sets the thread factory used to create new threads.

Java documentation for java.util.concurrent.ThreadPoolExecutor.setThreadFactory(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

See also