Executors.UnconfigurableScheduledExecutorService 方法

定义

返回一个对象,该对象将所有已定义 ScheduledExecutorService 的方法委托给给定的执行程序,但不能使用强制转换访问任何其他方法。

[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

参数

executor
IScheduledExecutorService

基础实现

返回

实例ScheduledExecutorService

属性

例外

如果执行程序为 null

注解

返回一个对象,该对象将所有已定义 ScheduledExecutorService 的方法委托给给定的执行程序,但不能使用强制转换访问任何其他方法。 这提供了一种方法来安全地“冻结”配置,并禁止优化给定的具体实现。

适用于 . 的 java.util.concurrent.Executors.unconfigurableScheduledExecutorService(java.util.concurrent.ScheduledExecutorService)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于