public class CommonForkJoinPoolExecutorServices extends AbstractExecutorServices
ForkJoinPool.commonPool(). This ExecutorService implementation ignores threadPoolSize and
threadPoolKeepAliveTime configuration options.| Constructor and Description |
|---|
CommonForkJoinPoolExecutorServices() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
ExecutorService |
getTaskExecutor() |
protected int |
getThreadPoolSize()
Indicates the maximum number of threads in this thread pool.
|
<T> Collection<? extends Callable<T>> |
wrap(Collection<? extends Callable<T>> tasks)
If in SE environment, this method wraps the collection of tasks in such a way that it sets the TCCL to null before
executing them and re-sets it to previous value once done.
|
checkForExceptions, getTimerExecutor, invokeAllAndCheckForExceptions, invokeAllAndCheckForExceptions, shutdownpublic ExecutorService getTaskExecutor()
public void cleanup()
cleanup in interface org.jboss.weld.bootstrap.api.Servicecleanup in class AbstractExecutorServicesprotected int getThreadPoolSize()
AbstractExecutorServicesgetThreadPoolSize in class AbstractExecutorServicespublic <T> Collection<? extends Callable<T>> wrap(Collection<? extends Callable<T>> tasks)
org.jboss.weld.environment.deployment.WeldResourceLoader#getClassLoader().wrap in class AbstractExecutorServicesWELD-2494Copyright © 2019. All rights reserved.