Class LimitedExecutor
java.lang.Object
org.jboss.threads.LimitedExecutor
- All Implemented Interfaces:
Executor
An executor for long-running tasks which limits the total concurrency over a delegate thread pool.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionLimitedExecutor(Executor executor, int concurrencyLimit) LimitedExecutor(Executor executor, Thread.UncaughtExceptionHandler handler, int concurrencyLimit) -
Method Summary
-
Constructor Details
-
LimitedExecutor
public LimitedExecutor(Executor executor, Thread.UncaughtExceptionHandler handler, int concurrencyLimit) -
LimitedExecutor
-
-
Method Details
-
execute
- Specified by:
executein interfaceExecutor- Throws:
RejectedExecutionException
-
toString
-