Share via


Executors.UnconfigurableExecutorService(IExecutorService) Method

Definition

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

[Android.Runtime.Register("unconfigurableExecutorService", "(Ljava/util/concurrent/ExecutorService;)Ljava/util/concurrent/ExecutorService;", "")]
public static Java.Util.Concurrent.IExecutorService? UnconfigurableExecutorService (Java.Util.Concurrent.IExecutorService? executor);
[<Android.Runtime.Register("unconfigurableExecutorService", "(Ljava/util/concurrent/ExecutorService;)Ljava/util/concurrent/ExecutorService;", "")>]
static member UnconfigurableExecutorService : Java.Util.Concurrent.IExecutorService -> Java.Util.Concurrent.IExecutorService

Parameters

executor
IExecutorService

the underlying implementation

Returns

an ExecutorService instance

Attributes

Exceptions

if executor null

Remarks

Returns an object that delegates all defined ExecutorService 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.unconfigurableExecutorService(java.util.concurrent.ExecutorService).

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