ScheduledThreadPoolExecutor 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
ScheduledThreadPoolExecutor(Int32) |
Creates a new |
ScheduledThreadPoolExecutor(Int32, IRejectedExecutionHandler) |
Creates a new |
ScheduledThreadPoolExecutor(Int32, IThreadFactory) |
Creates a new |
ScheduledThreadPoolExecutor(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
ScheduledThreadPoolExecutor(Int32, IThreadFactory, IRejectedExecutionHandler) |
Creates a new |
ScheduledThreadPoolExecutor(Int32)
Creates a new ScheduledThreadPoolExecutor
with the
given core pool size.
[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
Parameters
- corePoolSize
- Int32
the number of threads to keep in the pool, even
if they are idle, unless allowCoreThreadTimeOut
is set
- Attributes
Exceptions
if corePoolSize
Remarks
Creates a new ScheduledThreadPoolExecutor
with the given core pool size.
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
ScheduledThreadPoolExecutor(Int32, IRejectedExecutionHandler)
Creates a new ScheduledThreadPoolExecutor
with the
given initial parameters.
[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
Parameters
- corePoolSize
- Int32
the number of threads to keep in the pool, even
if they are idle, unless allowCoreThreadTimeOut
is set
- handler
- IRejectedExecutionHandler
the handler to use when execution is blocked because the thread bounds and queue capacities are reached
- Attributes
Exceptions
if corePoolSize
if handler
is null
Remarks
Creates a new ScheduledThreadPoolExecutor
with the given initial parameters.
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
ScheduledThreadPoolExecutor(Int32, IThreadFactory)
Creates a new ScheduledThreadPoolExecutor
with the
given initial parameters.
[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
Parameters
- corePoolSize
- Int32
the number of threads to keep in the pool, even
if they are idle, unless allowCoreThreadTimeOut
is set
- threadFactory
- IThreadFactory
the factory to use when the executor creates a new thread
- Attributes
Exceptions
if corePoolSize
if threadFactory
is null
Remarks
Creates a new ScheduledThreadPoolExecutor
with the given initial parameters.
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
ScheduledThreadPoolExecutor(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected ScheduledThreadPoolExecutor (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.ScheduledThreadPoolExecutor : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.ScheduledThreadPoolExecutor
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.
Applies to
ScheduledThreadPoolExecutor(Int32, IThreadFactory, IRejectedExecutionHandler)
Creates a new ScheduledThreadPoolExecutor
with the
given initial parameters.
[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
Parameters
- corePoolSize
- Int32
the number of threads to keep in the pool, even
if they are idle, unless allowCoreThreadTimeOut
is set
- threadFactory
- IThreadFactory
the factory to use when the executor creates a new thread
- handler
- IRejectedExecutionHandler
the handler to use when execution is blocked because the thread bounds and queue capacities are reached
- Attributes
Exceptions
if corePoolSize
if threadFactory
or
handler
is null
Remarks
Creates a new ScheduledThreadPoolExecutor
with the given initial parameters.
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.