Uses of Class
java.util.concurrent.ThreadPoolExecutor
-
Packages that use ThreadPoolExecutor 软件包 描述 java.util.concurrent 实用类通常在并发编程中有用。 -
-
Uses of ThreadPoolExecutor in java.util.concurrent
Subclasses of ThreadPoolExecutor in java.util.concurrent 变量和类型 类 描述 class
ScheduledThreadPoolExecutor
ThreadPoolExecutor
,可以额外安排命令在给定延迟后运行,或定期执行。Methods in java.util.concurrent with parameters of type ThreadPoolExecutor 变量和类型 方法 描述 void
RejectedExecutionHandler. rejectedExecution(Runnable r, ThreadPoolExecutor executor)
方法可以由被调用ThreadPoolExecutor
时execute
不能接受的任务。void
ThreadPoolExecutor.AbortPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)
始终抛出RejectedExecutionException。void
ThreadPoolExecutor.CallerRunsPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)
在调用者的线程中执行任务r,除非执行程序已关闭,在这种情况下,任务将被丢弃。void
ThreadPoolExecutor.DiscardOldestPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)
获取并忽略执行程序否则将执行的下一个任务(如果一个可立即执行),然后重试任务r的执行,除非执行程序被关闭,在这种情况下,任务r被丢弃。void
ThreadPoolExecutor.DiscardPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)
Does nothing, which has the effect of discarding task r.
-