ThreadPoolExecutor.AbortPolicy.RejectedExecution 方法

定义

始终引发 RejectedExecutionException。

[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

尝试执行此任务的执行程序

实现

属性

例外

注解

始终引发 RejectedExecutionException。

Java文档java.util.concurrent.ThreadPoolExecutor.AbortPolicy.rejectedExecution(java.lang.Runnable, java.util.concurrent.ThreadPoolExecutor)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于