Uses of Class
java.util.concurrent.ThreadPoolExecutor
Packages that use ThreadPoolExecutor
-
Uses of ThreadPoolExecutor in java.util.concurrent
Subclasses of ThreadPoolExecutor in java.util.concurrentModifier and TypeClassDescriptionclassAThreadPoolExecutorthat can additionally schedule commands to run after a given delay, or to execute periodically.Methods in java.util.concurrent with parameters of type ThreadPoolExecutorModifier and TypeMethodDescriptionvoidRejectedExecutionHandler.rejectedExecution(Runnable r, ThreadPoolExecutor executor) Method that may be invoked by aThreadPoolExecutorwhenexecutecannot accept a task.voidThreadPoolExecutor.AbortPolicy.rejectedExecution(Runnable r, ThreadPoolExecutor e) Always throws RejectedExecutionException.voidThreadPoolExecutor.CallerRunsPolicy.rejectedExecution(Runnable r, ThreadPoolExecutor e) Executes task r in the caller's thread, unless the executor has been shut down, in which case the task is discarded.voidThreadPoolExecutor.DiscardOldestPolicy.rejectedExecution(Runnable r, ThreadPoolExecutor e) Obtains and ignores the next task that the executor would otherwise execute, if one is immediately available, and then retries execution of task r, unless the executor is shut down, in which case task r is instead discarded.voidThreadPoolExecutor.DiscardPolicy.rejectedExecution(Runnable r, ThreadPoolExecutor e) Does nothing, which has the effect of discarding task r.