Uses of Interface
java.util.concurrent.RejectedExecutionHandler
-
Packages that use RejectedExecutionHandler 软件包 描述 java.util.concurrent 实用类通常在并发编程中有用。 -
-
Uses of RejectedExecutionHandler in java.util.concurrent
Classes in java.util.concurrent that implement RejectedExecutionHandler 变量和类型 类 描述 static classThreadPoolExecutor.AbortPolicy拒绝任务的处理程序,抛出RejectedExecutionException。static classThreadPoolExecutor.CallerRunsPolicy被拒绝任务的处理程序,直接在execute方法的调用线程中运行被拒绝的任务,除非执行程序已关闭,在这种情况下,任务将被丢弃。static classThreadPoolExecutor.DiscardOldestPolicy拒绝任务的处理程序,丢弃最旧的未处理请求,然后重试execute,除非执行程序关闭,在这种情况下,任务将被丢弃。static classThreadPoolExecutor.DiscardPolicy拒绝任务的处理程序,以静默方式丢弃被拒绝的任务。Methods in java.util.concurrent that return RejectedExecutionHandler 变量和类型 方法 描述 RejectedExecutionHandlerThreadPoolExecutor. getRejectedExecutionHandler()返回不可执行任务的当前处理程序。Methods in java.util.concurrent with parameters of type RejectedExecutionHandler 变量和类型 方法 描述 voidThreadPoolExecutor. setRejectedExecutionHandler(RejectedExecutionHandler handler)为不可执行的任务设置新的处理程序。Constructors in java.util.concurrent with parameters of type RejectedExecutionHandler 构造器 描述 ScheduledThreadPoolExecutor(int corePoolSize, RejectedExecutionHandler handler)使用给定的初始参数创建新的ScheduledThreadPoolExecutor。ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler)使用给定的初始参数创建新的ScheduledThreadPoolExecutor。ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler)创建一个新的ThreadPoolExecutor给定的初始参数和 default thread factory 。ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)使用给定的初始参数创建新的ThreadPoolExecutor。
-