public class FixedThreadPoolExecutorServices extends AbstractExecutorServices
ExtendedExecutorServices that uses a fixed thread pool. The size of the underlying thread pool is
determined by executing Runtime.getRuntime().availableProcessors() + 1.org.jboss.weld.manager.api.ExecutorServices.TaskFactory<T>| Constructor and Description |
|---|
FixedThreadPoolExecutorServices(int threadPoolSize) |
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
getTaskExecutor() |
int |
getThreadPoolSize()
Indicates the maximum number of threads in this thread pool.
|
String |
toString() |
cleanup, checkForExceptions, invokeAllAndCheckForExceptions, invokeAllAndCheckForExceptions, shutdownpublic FixedThreadPoolExecutorServices(int threadPoolSize)
public ExecutorService getTaskExecutor()
public int getThreadPoolSize()
AbstractExecutorServicesgetThreadPoolSize in class AbstractExecutorServicesCopyright © 2017. All rights reserved.