Executors.UnconfigurableScheduledExecutorService Method

Definition

Returns an object that delegates all defined ScheduledExecutorService methods to the given executor, but not any other methods that might otherwise be accessible using casts.

[Android.Runtime.Register("unconfigurableScheduledExecutorService", "(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledExecutorService;", "")]
public static Java.Util.Concurrent.IScheduledExecutorService? UnconfigurableScheduledExecutorService (Java.Util.Concurrent.IScheduledExecutorService? executor);
[<Android.Runtime.Register("unconfigurableScheduledExecutorService", "(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledExecutorService;", "")>]
static member UnconfigurableScheduledExecutorService : Java.Util.Concurrent.IScheduledExecutorService -> Java.Util.Concurrent.IScheduledExecutorService

Parameters

executor
IScheduledExecutorService

the underlying implementation

Returns

a ScheduledExecutorService instance

Attributes

Exceptions

if executor null

Remarks

Returns an object that delegates all defined ScheduledExecutorService methods to the given executor, but not any other methods that might otherwise be accessible using casts. This provides a way to safely "freeze" configuration and disallow tuning of a given concrete implementation.

Java documentation for java.util.concurrent.Executors.unconfigurableScheduledExecutorService(java.util.concurrent.ScheduledExecutorService).

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