| Package | Description |
|---|---|
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ThreadPoolExecutor.CallerRunsPolicy.rejectedExecution(Runnable
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
Always throws RejectedExecutionException.
|
void |
ThreadPoolExecutor.DiscardPolicy.rejectedExecution(Runnable
Does nothing, which has the effect of discarding task r.
|
void |
ThreadPoolExecutor.DiscardOldestPolicy.rejectedExecution(Runnable
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
Method that may be invoked by a
ThreadPoolExecutor when
execute cannot accept a task.
|