Uses of Class java.util.concurrent.ThreadPoolExecutor (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Class
java.util.concurrent.ThreadPoolExecutor

- Packages that use ThreadPoolExecutor
  Package | Description
  --- | ---
  java.util.concurrent | Utility classes commonly useful in concurrent programming.

- - ### Uses of ThreadPoolExecutor in java.util.concurrent

    Subclasses of ThreadPoolExecutor in java.util.concurrent
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ScheduledThreadPoolExecutor` A `ThreadPoolExecutor` that can additionally schedule commands to run after a given delay, or to execute periodically.

    Methods in java.util.concurrent with parameters of type ThreadPoolExecutor
    Modifier and Type | Method and Description
    --- | ---
    `void` | ThreadPoolExecutor.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.
    `void` | ThreadPoolExecutor.AbortPolicy.`rejectedExecution(Runnable r, ThreadPoolExecutor e)` Always throws RejectedExecutionException.
    `void` | ThreadPoolExecutor.DiscardPolicy.`rejectedExecution(Runnable r, ThreadPoolExecutor e)` Does nothing, which has the effect of discarding task r.
    `void` | ThreadPoolExecutor.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.
    `void` | RejectedExecutionHandler.`rejectedExecution(Runnable r, ThreadPoolExecutor executor)` Method that may be invoked by a `ThreadPoolExecutor` when `execute` cannot accept a task.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.