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 Modifier and Type Class 描述 static classThreadPoolExecutor.AbortPolicy被拒绝的任务的处理程序,抛出一个RejectedExecutionException。static classThreadPoolExecutor.CallerRunsPolicy一个被拒绝的任务的处理程序,直接在execute方法的调用线程中运行被拒绝的任务,除非执行程序已经被关闭,否则这个任务被丢弃。static classThreadPoolExecutor.DiscardOldestPolicy被拒绝的任务的处理程序,丢弃最旧的未处理请求,然后重试execute,除非执行程序关闭,在这种情况下,任务被丢弃。static classThreadPoolExecutor.DiscardPolicy被拒绝的任务的处理程序静默地丢弃被拒绝的任务。Methods in java.util.concurrent that return RejectedExecutionHandler Modifier and Type 方法 描述 RejectedExecutionHandlerThreadPoolExecutor. getRejectedExecutionHandler()返回不可执行任务的当前处理程序。Methods in java.util.concurrent with parameters of type RejectedExecutionHandler Modifier and Type 方法 描述 voidThreadPoolExecutor. setRejectedExecutionHandler(RejectedExecutionHandler handler)为不可执行的任务设置一个新的处理程序。Constructors in java.util.concurrent with parameters of type RejectedExecutionHandler Constructor 描述 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与给定的初始参数和默认线程工厂。ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)使用给定的初始参数创建一个新的ThreadPoolExecutor。
-