| Constructor and Description |
|---|
ExecutorServiceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ExecutorService |
createExecutorService(int maxConcurrentThreads,
Class<?> clazz) |
public static ExecutorService createExecutorService(int maxConcurrentThreads, Class<?> clazz)
maxConcurrentThreads threads and context class loader
initialized to clazz's context class loader.
A weak reference to the returned object is saved internally to make the necessary cleanups in Web applications and other dynamic environments possible. See CARROT-388.