Executors.NewScheduledThreadPool Method

Definition

Overloads

NewScheduledThreadPool(Int32, IThreadFactory)

Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.

NewScheduledThreadPool(Int32)

Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.

NewScheduledThreadPool(Int32, IThreadFactory)

Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.

[Android.Runtime.Register("newScheduledThreadPool", "(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;", "")]
public static Java.Util.Concurrent.IScheduledExecutorService? NewScheduledThreadPool (int corePoolSize, Java.Util.Concurrent.IThreadFactory? threadFactory);
[<Android.Runtime.Register("newScheduledThreadPool", "(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;", "")>]
static member NewScheduledThreadPool : int * Java.Util.Concurrent.IThreadFactory -> Java.Util.Concurrent.IScheduledExecutorService

Parameters

corePoolSize
Int32

the number of threads to keep in the pool, even if they are idle

threadFactory
IThreadFactory

the factory to use when the executor creates a new thread

Returns

the newly created scheduled thread pool

Attributes

Exceptions

if corePoolSize

if threadFactory is null

Remarks

Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.

Java documentation for java.util.concurrent.Executors.newScheduledThreadPool(int, 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

NewScheduledThreadPool(Int32)

Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.

[Android.Runtime.Register("newScheduledThreadPool", "(I)Ljava/util/concurrent/ScheduledExecutorService;", "")]
public static Java.Util.Concurrent.IScheduledExecutorService? NewScheduledThreadPool (int corePoolSize);
[<Android.Runtime.Register("newScheduledThreadPool", "(I)Ljava/util/concurrent/ScheduledExecutorService;", "")>]
static member NewScheduledThreadPool : int -> Java.Util.Concurrent.IScheduledExecutorService

Parameters

corePoolSize
Int32

the number of threads to keep in the pool, even if they are idle

Returns

the newly created scheduled thread pool

Attributes

Exceptions

if corePoolSize

Remarks

Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.

Java documentation for java.util.concurrent.Executors.newScheduledThreadPool(int).

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