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 Modifier and Type Class 描述 classScheduledThreadPoolExecutorAThreadPoolExecutor可以额外地调度命令在给定的延迟之后运行,或者周期性地执行。Methods in java.util.concurrent with parameters of type ThreadPoolExecutor Modifier and Type 方法 描述 voidRejectedExecutionHandler. rejectedExecution(Runnable r, ThreadPoolExecutor executor)ThreadPoolExecutor当execute无法接受任务时可能调用的方法。voidThreadPoolExecutor.AbortPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)总是抛出RejectedExecutionException。voidThreadPoolExecutor.CallerRunsPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)执行调用者线程中的任务r,除非执行程序已经被关闭,否则任务被丢弃。voidThreadPoolExecutor.DiscardOldestPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)获取并忽略执行者否则将执行的下一个任务,如果一个可以立即可用,然后重试任务r的执行,除非执行程序关闭,否则任务r被替换为丢弃。voidThreadPoolExecutor.DiscardPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)Does nothing, which has the effect of discarding task r.
-