語言

Executors.UnconfigurableScheduledExecutorService 方法

定義

回傳一個物件,將所有定義的方法 ScheduledExecutorService 委派給給執行者,但不包含其他可能透過 cast 存取的方法。

[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 實例

屬性

例外狀況

若執行者為空

備註

回傳一個物件,將所有定義的方法 ScheduledExecutorService 委派給給執行者,但不包含其他可能透過 cast 存取的方法。 這提供了一種安全「凍結」配置並禁止調整特定混凝土實現的方法。

Java 文件 java.util.concurrent.Executors.unconfigurableScheduledExecutorService(java.util.concurrent.ScheduledExecutorService)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於