Java.Util.Concurrent.Executors.NewScheduledThreadPool Method
Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.

Syntax

[Android.Runtime.Register("newScheduledThreadPool", "(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;", "")]
public static IScheduledExecutorService NewScheduledThreadPool (int corePoolSize, IThreadFactory threadFactory)

Parameters

corePoolSize
the number of threads to keep in the pool, even if they are idle
threadFactory
the factory to use when the executor creates a new thread

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif corePoolSize
Java.Lang.NullPointerExceptionif threadFactory is null

Remarks

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

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1