ScheduledThreadPoolExecutor 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ScheduledThreadPoolExecutor(Int32) |
建立一個與特定核心池大小相同的新 |
| ScheduledThreadPoolExecutor(Int32, IRejectedExecutionHandler) |
建立 |
| ScheduledThreadPoolExecutor(Int32, IThreadFactory) |
建立 |
| ScheduledThreadPoolExecutor(IntPtr, JniHandleOwnership) |
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。 |
| ScheduledThreadPoolExecutor(Int32, IThreadFactory, IRejectedExecutionHandler) |
建立 |
ScheduledThreadPoolExecutor(Int32)
建立一個與特定核心池大小相同的新 ScheduledThreadPoolExecutor 模組。
[Android.Runtime.Register(".ctor", "(I)V", "")]
public ScheduledThreadPoolExecutor(int corePoolSize);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.Concurrent.ScheduledThreadPoolExecutor : int -> Java.Util.Concurrent.ScheduledThreadPoolExecutor
參數
- corePoolSize
- Int32
即使執行緒處於閒置狀態,也必須保留在池中,除非 allowCoreThreadTimeOut 設定
- 屬性
例外狀況
如果 corePoolSize
備註
建立一個與特定核心池大小相同的新 ScheduledThreadPoolExecutor 模組。
Java 文件 java.util.concurrent.ScheduledThreadPoolExecutor.ScheduledThreadPoolExecutor(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
ScheduledThreadPoolExecutor(Int32, IRejectedExecutionHandler)
建立 ScheduledThreadPoolExecutor 一個包含給定初始參數的新版本。
[Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/RejectedExecutionHandler;)V", "")]
public ScheduledThreadPoolExecutor(int corePoolSize, Java.Util.Concurrent.IRejectedExecutionHandler? handler);
[<Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/RejectedExecutionHandler;)V", "")>]
new Java.Util.Concurrent.ScheduledThreadPoolExecutor : int * Java.Util.Concurrent.IRejectedExecutionHandler -> Java.Util.Concurrent.ScheduledThreadPoolExecutor
參數
- corePoolSize
- Int32
即使執行緒處於閒置狀態,也必須保留在池中,除非 allowCoreThreadTimeOut 設定
- handler
- IRejectedExecutionHandler
當執行阻塞時,處理程序會被阻塞,因為執行緒界限和佇列容量已達
- 屬性
例外狀況
如果 corePoolSize
若 handler 為空
備註
建立 ScheduledThreadPoolExecutor 一個包含給定初始參數的新版本。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
ScheduledThreadPoolExecutor(Int32, IThreadFactory)
建立 ScheduledThreadPoolExecutor 一個包含給定初始參數的新版本。
[Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/ThreadFactory;)V", "")]
public ScheduledThreadPoolExecutor(int corePoolSize, Java.Util.Concurrent.IThreadFactory? threadFactory);
[<Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/ThreadFactory;)V", "")>]
new Java.Util.Concurrent.ScheduledThreadPoolExecutor : int * Java.Util.Concurrent.IThreadFactory -> Java.Util.Concurrent.ScheduledThreadPoolExecutor
參數
- corePoolSize
- Int32
即使執行緒處於閒置狀態,也必須保留在池中,除非 allowCoreThreadTimeOut 設定
- threadFactory
- IThreadFactory
執行者建立新執行緒時使用的工廠
- 屬性
例外狀況
如果 corePoolSize
若 threadFactory 為空
備註
建立 ScheduledThreadPoolExecutor 一個包含給定初始參數的新版本。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
ScheduledThreadPoolExecutor(IntPtr, JniHandleOwnership)
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。
protected ScheduledThreadPoolExecutor(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.ScheduledThreadPoolExecutor : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.ScheduledThreadPoolExecutor
參數
- transfer
- JniHandleOwnership
JniHandleOwnershipA 指示如何處理javaReference
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
ScheduledThreadPoolExecutor(Int32, IThreadFactory, IRejectedExecutionHandler)
建立 ScheduledThreadPoolExecutor 一個包含給定初始參數的新版本。
[Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V", "")]
public ScheduledThreadPoolExecutor(int corePoolSize, Java.Util.Concurrent.IThreadFactory? threadFactory, Java.Util.Concurrent.IRejectedExecutionHandler? handler);
[<Android.Runtime.Register(".ctor", "(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V", "")>]
new Java.Util.Concurrent.ScheduledThreadPoolExecutor : int * Java.Util.Concurrent.IThreadFactory * Java.Util.Concurrent.IRejectedExecutionHandler -> Java.Util.Concurrent.ScheduledThreadPoolExecutor
參數
- corePoolSize
- Int32
即使執行緒處於閒置狀態,也必須保留在池中,除非 allowCoreThreadTimeOut 設定
- threadFactory
- IThreadFactory
執行者建立新執行緒時使用的工廠
- handler
- IRejectedExecutionHandler
當執行阻塞時,處理程序會被阻塞,因為執行緒界限和佇列容量已達
- 屬性
例外狀況
如果 corePoolSize
若 threadFactory 或 handler 為空
備註
建立 ScheduledThreadPoolExecutor 一個包含給定初始參數的新版本。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。