hunt.concurrency.ThreadPoolExecutor

Undocumented in source.

Members

Classes

AbortPolicy
class AbortPolicy

A handler for rejected tasks that throws a {@link RejectedExecutionException}.

CallerRunsPolicy
class CallerRunsPolicy

A handler for rejected tasks that runs the rejected task directly in the calling thread of the {@code execute} method, unless the executor has been shut down, in which case the task is discarded.

DiscardOldestPolicy
class DiscardOldestPolicy

A handler for rejected tasks that discards the oldest unhandled request and then retries {@code execute}, unless the executor is shut down, in which case the task is discarded.

DiscardPolicy
class DiscardPolicy

A handler for rejected tasks that silently discards the rejected task.

ThreadPoolExecutor
class ThreadPoolExecutor

An {@link ExecutorService} that executes each submitted task using one of possibly several pooled threads, normally configured using {@link Executors} factory methods.

Interfaces

RejectedExecutionHandler
interface RejectedExecutionHandler

A handler for tasks that cannot be executed by a {@link ThreadPoolExecutor}.

Meta