Executors.UnconfigurableExecutorService(IExecutorService) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.