Executors.UnconfigurableScheduledExecutorService 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个对象,该对象将所有已定义 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
的方法委托给给定的执行程序,但不能使用强制转换访问任何其他方法。 这提供了一种方法来安全地“冻结”配置,并禁止优化给定的具体实现。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。