Utility classes commonly useful in concurrent programming.
class
A
ThreadPoolExecutor
that can additionally schedule
commands to run after a given delay, or to execute periodically.
void
void
Always throws RejectedExecutionException.
void
Executes task r in the caller's thread, unless the executor
has been shut down, in which case the task is discarded.
void
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
Does nothing, which has the effect of discarding task r.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2021, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .