ThreadPoolExecutor.RejectedExecutionHandler 属性

定义

返回不可执行任务的当前处理程序。 - 或 - 为不可执行的任务设置新的处理程序。

public virtual Java.Util.Concurrent.IRejectedExecutionHandler? RejectedExecutionHandler { [Android.Runtime.Register("getRejectedExecutionHandler", "()Ljava/util/concurrent/RejectedExecutionHandler;", "GetGetRejectedExecutionHandlerHandler")] get; [Android.Runtime.Register("setRejectedExecutionHandler", "(Ljava/util/concurrent/RejectedExecutionHandler;)V", "GetSetRejectedExecutionHandler_Ljava_util_concurrent_RejectedExecutionHandler_Handler")] set; }
[<get: Android.Runtime.Register("getRejectedExecutionHandler", "()Ljava/util/concurrent/RejectedExecutionHandler;", "GetGetRejectedExecutionHandlerHandler")>]
[<set: Android.Runtime.Register("setRejectedExecutionHandler", "(Ljava/util/concurrent/RejectedExecutionHandler;)V", "GetSetRejectedExecutionHandler_Ljava_util_concurrent_RejectedExecutionHandler_Handler")>]
member this.RejectedExecutionHandler : Java.Util.Concurrent.IRejectedExecutionHandler with get, set

属性值

当前处理程序

属性

例外

如果处理程序为 null,则为

注解

属性 getter 文档:

返回不可执行任务的当前处理程序。

适用于 . 的 java.util.concurrent.ThreadPoolExecutor.getRejectedExecutionHandler()Java 文档

属性 setter 文档:

为不可执行的任务设置新的处理程序。

适用于 . 的 java.util.concurrent.ThreadPoolExecutor.setRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

另请参阅