public class PoolService<FutureType>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ExecutorCompletionService<FutureType> |
m_completionService |
private java.util.concurrent.ExecutorService |
m_executor |
private java.util.concurrent.ThreadFactory |
m_threadFactory |
Constructor and Description |
---|
PoolService(int threadPoolSize) |
Modifier and Type | Method and Description |
---|---|
java.util.List<FutureType> |
submitTasksAndWait(java.util.List<? extends java.util.concurrent.Callable<FutureType>> tasks) |
private java.util.concurrent.ExecutorCompletionService<FutureType> m_completionService
private java.util.concurrent.ThreadFactory m_threadFactory
private java.util.concurrent.ExecutorService m_executor
public java.util.List<FutureType> submitTasksAndWait(java.util.List<? extends java.util.concurrent.Callable<FutureType>> tasks)