Class BlockingThreadPoolExecutor

java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
com.complexible.common.util.concurrent.BlockingThreadPoolExecutor
All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService

public final class BlockingThreadPoolExecutor extends ThreadPoolExecutor

ThreadPoolExecutor which has a limited number of outstanding permits for executing tasks and when there are no more permits left, new tasks will block waiting for a permit to free up instead of throwing an exception.

Since:
1.1
Version:
3.0
Author:
Michael Grove