| Class | Description |
|---|---|
| ThreadPoolExecutor |
An
ExecutorService that executes each submitted task using
one of possibly several pooled threads, normally configured
using Executors factory methods. |
| ThreadPoolExecutor.AbortPolicy |
A handler for rejected tasks that throws a
RejectedExecutionException. |
| ThreadPoolExecutor.CallerRunsPolicy |
A handler for rejected tasks that runs the rejected task
directly in the calling thread of the
execute method,
unless the executor has been shut down, in which case the task
is discarded. |
| ThreadPoolExecutor.DiscardOldestPolicy |
A handler for rejected tasks that discards the oldest unhandled
request and then retries
execute, unless the executor
is shut down, in which case the task is discarded. |
| ThreadPoolExecutor.DiscardPolicy |
A handler for rejected tasks that silently discards the
rejected task.
|
Copyright © 2016. All rights reserved.