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.ExecutorServices.TaskFactory<T>
Constructor and Description |
---|
FixedThreadPoolExecutorServices(int threadPoolSize) |
Modifier and Type | Method and Description |
---|---|
ExecutorService |
getTaskExecutor() |
int |
getThreadPoolSize() |
String |
toString() |
checkForExceptions, cleanup, invokeAllAndCheckForExceptions, invokeAllAndCheckForExceptions
public FixedThreadPoolExecutorServices(int threadPoolSize)
public ExecutorService getTaskExecutor()
public int getThreadPoolSize()
getThreadPoolSize
in class AbstractExecutorServices
Copyright © 2014. All Rights Reserved.