ScheduledThreadPoolExecutor Costruttori
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
| Nome | Descrizione |
|---|---|
| ScheduledThreadPoolExecutor(Int32) |
Crea un nuovo |
| ScheduledThreadPoolExecutor(Int32, IRejectedExecutionHandler) |
Crea un nuovo |
| ScheduledThreadPoolExecutor(Int32, IThreadFactory) |
Crea un nuovo |
| ScheduledThreadPoolExecutor(IntPtr, JniHandleOwnership) |
Costruttore usato durante la creazione di rappresentazioni gestite di oggetti JNI; chiamato dal runtime. |
| ScheduledThreadPoolExecutor(Int32, IThreadFactory, IRejectedExecutionHandler) |
Crea un nuovo |
ScheduledThreadPoolExecutor(Int32)
Crea un nuovo ScheduledThreadPoolExecutor oggetto con le dimensioni del pool di core specificate.
[Android.Runtime.Register(".ctor", "(I)V", "")]
public ScheduledThreadPoolExecutor(int corePoolSize);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.Concurrent.ScheduledThreadPoolExecutor : int -> Java.Util.Concurrent.ScheduledThreadPoolExecutor
Parametri
- corePoolSize
- Int32
numero di thread da mantenere nel pool, anche se sono inattive, a meno che non allowCoreThreadTimeOut sia impostato
- Attributi
Eccezioni
se corePoolSize
Commenti
Crea un nuovo ScheduledThreadPoolExecutor oggetto con le dimensioni del pool di core specificate.
per java.util.concurrent.ScheduledThreadPoolExecutor.ScheduledThreadPoolExecutor(int).
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.
Si applica a
ScheduledThreadPoolExecutor(Int32, IRejectedExecutionHandler)
Crea un nuovo ScheduledThreadPoolExecutor oggetto con i parametri iniziali specificati.
[Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/RejectedExecutionHandler;)V", "")]
public ScheduledThreadPoolExecutor(int corePoolSize, Java.Util.Concurrent.IRejectedExecutionHandler? handler);
[<Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/RejectedExecutionHandler;)V", "")>]
new Java.Util.Concurrent.ScheduledThreadPoolExecutor : int * Java.Util.Concurrent.IRejectedExecutionHandler -> Java.Util.Concurrent.ScheduledThreadPoolExecutor
Parametri
- corePoolSize
- Int32
numero di thread da mantenere nel pool, anche se sono inattive, a meno che non allowCoreThreadTimeOut sia impostato
- handler
- IRejectedExecutionHandler
gestore da usare quando l'esecuzione viene bloccata perché vengono raggiunti i limiti del thread e le capacità della coda
- Attributi
Eccezioni
se corePoolSize
se handler è null
Commenti
Crea un nuovo ScheduledThreadPoolExecutor oggetto con i parametri iniziali specificati.
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.
Si applica a
ScheduledThreadPoolExecutor(Int32, IThreadFactory)
Crea un nuovo ScheduledThreadPoolExecutor oggetto con i parametri iniziali specificati.
[Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/ThreadFactory;)V", "")]
public ScheduledThreadPoolExecutor(int corePoolSize, Java.Util.Concurrent.IThreadFactory? threadFactory);
[<Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/ThreadFactory;)V", "")>]
new Java.Util.Concurrent.ScheduledThreadPoolExecutor : int * Java.Util.Concurrent.IThreadFactory -> Java.Util.Concurrent.ScheduledThreadPoolExecutor
Parametri
- corePoolSize
- Int32
numero di thread da mantenere nel pool, anche se sono inattive, a meno che non allowCoreThreadTimeOut sia impostato
- threadFactory
- IThreadFactory
factory da usare quando l'executor crea un nuovo thread
- Attributi
Eccezioni
se corePoolSize
se threadFactory è null
Commenti
Crea un nuovo ScheduledThreadPoolExecutor oggetto con i parametri iniziali specificati.
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.
Si applica a
ScheduledThreadPoolExecutor(IntPtr, JniHandleOwnership)
Costruttore usato durante la creazione di rappresentazioni gestite di oggetti JNI; chiamato dal runtime.
protected ScheduledThreadPoolExecutor(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.ScheduledThreadPoolExecutor : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.ScheduledThreadPoolExecutor
Parametri
- javaReference
-
IntPtr
nativeint
Oggetto IntPtrcontenente un riferimento all'oggetto JNI (Java Native Interface).
- transfer
- JniHandleOwnership
Oggetto JniHandleOwnershipche indica come gestire javaReference
Commenti
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.
Si applica a
ScheduledThreadPoolExecutor(Int32, IThreadFactory, IRejectedExecutionHandler)
Crea un nuovo ScheduledThreadPoolExecutor oggetto con i parametri iniziali specificati.
[Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V", "")]
public ScheduledThreadPoolExecutor(int corePoolSize, Java.Util.Concurrent.IThreadFactory? threadFactory, Java.Util.Concurrent.IRejectedExecutionHandler? handler);
[<Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V", "")>]
new Java.Util.Concurrent.ScheduledThreadPoolExecutor : int * Java.Util.Concurrent.IThreadFactory * Java.Util.Concurrent.IRejectedExecutionHandler -> Java.Util.Concurrent.ScheduledThreadPoolExecutor
Parametri
- corePoolSize
- Int32
numero di thread da mantenere nel pool, anche se sono inattive, a meno che non allowCoreThreadTimeOut sia impostato
- threadFactory
- IThreadFactory
factory da usare quando l'executor crea un nuovo thread
- handler
- IRejectedExecutionHandler
gestore da usare quando l'esecuzione viene bloccata perché vengono raggiunti i limiti del thread e le capacità della coda
- Attributi
Eccezioni
se corePoolSize
se threadFactory o handler è null
Commenti
Crea un nuovo ScheduledThreadPoolExecutor oggetto con i parametri iniziali specificati.
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.