語言

ThreadPoolExecutor.DiscardOldestPolicy.RejectedExecution 方法

定義

取得並忽略執行者原本會立即執行的下一個任務(若有立即可用),然後重新嘗試執行任務 r,除非執行器關閉,此時任務 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,除非執行器關閉,此時任務 r 會被丟棄。

的 java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy.rejectedExecution(java.lang.Runnable, java.util.concurrent.ThreadPoolExecutor)Java 檔。

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

適用於