public class FixedThreadPoolExecutorServices extends AbstractManagedExecutorServices
ExtendedExecutorServices that uses a fixed thread pool. The size of the underlying thread pool is
determined by executing Runtime.getRuntime().availableProcessors() + 1.ExecutorServices.TaskFactory<T>| Constructor and Description |
|---|
FixedThreadPoolExecutorServices(int threadPoolSize) |
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
getTaskExecutor() |
int |
getThreadPoolSize() |
String |
toString() |
cleanupcheckForExceptions, invokeAllAndCheckForExceptions, invokeAllAndCheckForExceptionspublic FixedThreadPoolExecutorServices(int threadPoolSize)
public ExecutorService getTaskExecutor()
public int getThreadPoolSize()
getThreadPoolSize in class AbstractExecutorServicesCopyright © 2015. All Rights Reserved.