Class BoundedThreadPool

  • All Implemented Interfaces:
    Executor, ExecutorService

    public final class BoundedThreadPool
    extends ThreadPoolExecutor
    Implementation of ThreadPoolExecutor that bounds the work queue.

    When a new job would exceed the queue bound, the job is run on the caller's thread rather than on a thread from the pool.