Condividi tramite


ThreadPoolExecutor.ThreadFactory Proprietà

Definizione

Restituisce la factory thread utilizzata per creare nuovi thread. -oppure- Imposta la factory thread usata per creare nuovi thread.

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

Valore della proprietà

la factory thread corrente

Attributi

Eccezioni

se threadFactory è null

Commenti

Documentazione del getter delle proprietà:

Restituisce la factory thread utilizzata per creare nuovi thread.

Documentazione java per java.util.concurrent.ThreadPoolExecutor.getThreadFactory().

Documentazione del setter delle proprietà:

Imposta la thread factory usata per creare nuovi thread.

Documentazione java per java.util.concurrent.ThreadPoolExecutor.setThreadFactory(java.util.concurrent.ThreadFactory).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a

Vedi anche