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 class
ThreadPoolExecutor.AbortPolicy
被拒绝的任务的处理程序,抛出一个RejectedExecutionException
。static class
ThreadPoolExecutor.CallerRunsPolicy
一个被拒绝的任务的处理程序,直接在execute
方法的调用线程中运行被拒绝的任务,除非执行程序已经被关闭,否则这个任务被丢弃。static class
ThreadPoolExecutor.DiscardOldestPolicy
被拒绝的任务的处理程序,丢弃最旧的未处理请求,然后重试execute
,除非执行程序关闭,在这种情况下,任务被丢弃。static class
ThreadPoolExecutor.DiscardPolicy
被拒绝的任务的处理程序静默地丢弃被拒绝的任务。Methods in java.util.concurrent that return RejectedExecutionHandler Modifier and Type 方法 描述 RejectedExecutionHandler
ThreadPoolExecutor. getRejectedExecutionHandler()
返回不可执行任务的当前处理程序。Methods in java.util.concurrent with parameters of type RejectedExecutionHandler Modifier and Type 方法 描述 void
ThreadPoolExecutor. 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
。
-