語言

ThreadPoolExecutor.CallerRunsPolicy.RejectedExecution 方法

定義

在呼叫者執行緒中執行任務 r,除非執行者已被關閉,此時該任務會被丟棄。

[Android.Runtime.Register("rejectedExecution", "(Ljava/lang/Runnable;Ljava/util/concurrent/ThreadPoolExecutor;)V", "GetRejectedExecution_Ljava_lang_Runnable_Ljava_util_concurrent_ThreadPoolExecutor_Handler")]
public virtual void RejectedExecution(Java.Lang.IRunnable? r, Java.Util.Concurrent.ThreadPoolExecutor? e);
[<Android.Runtime.Register("rejectedExecution", "(Ljava/lang/Runnable;Ljava/util/concurrent/ThreadPoolExecutor;)V", "GetRejectedExecution_Ljava_lang_Runnable_Ljava_util_concurrent_ThreadPoolExecutor_Handler")>]
abstract member RejectedExecution : Java.Lang.IRunnable * Java.Util.Concurrent.ThreadPoolExecutor -> unit
override this.RejectedExecution : Java.Lang.IRunnable * Java.Util.Concurrent.ThreadPoolExecutor -> unit

參數

r
IRunnable

請求執行的可執行任務

e
ThreadPoolExecutor

執行人嘗試執行此任務

實作

屬性

備註

在呼叫者執行緒中執行任務 r,除非執行者已被關閉,此時該任務會被丟棄。

Java 文件 java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy.rejectedExecution(java.lang.Runnable, java.util.concurrent.ThreadPoolExecutor)

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

適用於