Uses of Class
Utility classes commonly useful in concurrent programming.
Uses of ThreadPoolExecutor in java.util.concurrentModifier and TypeClassDescription
ThreadPoolExecutorthat can additionally schedule commands to run after a given delay, or to execute periodically.Modifier and TypeMethodDescription
voidAlways throws RejectedExecutionException.
voidExecutes task r in the caller's thread, unless the executor has been shut down, in which case the task is discarded.
voidObtains 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.
voidDoes nothing, which has the effect of discarding task r.