Java.Util.Concurrent.Executors.NewSingleThreadScheduledExecutor Method
Creates a single-threaded executor that can schedule commands to run after a given delay, or to execute periodically.

Syntax

[Android.Runtime.Register("newSingleThreadScheduledExecutor", "(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;", "")]
public static IScheduledExecutorService NewSingleThreadScheduledExecutor (IThreadFactory threadFactory)

Parameters

threadFactory
the factory to use when creating new threads

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif threadFactory is null

Remarks

Creates a single-threaded executor that can schedule commands to run after a given delay, or to execute periodically. (Note however that if this single thread terminates due to a failure during execution prior to shutdown, a new one will take its place if needed to execute subsequent tasks.) Tasks are guaranteed to execute sequentially, and no more than one task will be active at any given time. Unlike the otherwise equivalent newScheduledThreadPool(1, threadFactory) the returned executor is guaranteed not to be reconfigurable to use additional threads.

[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