Package org.jboss.weld.executor
Class TaskPerItemTaskFactory<T>
- java.lang.Object
-
- org.jboss.weld.executor.TaskPerItemTaskFactory<T>
-
- Type Parameters:
T- the type of the processed items
- All Implemented Interfaces:
org.jboss.weld.manager.api.ExecutorServices.TaskFactory<Void>
public abstract class TaskPerItemTaskFactory<T> extends Object implements org.jboss.weld.manager.api.ExecutorServices.TaskFactory<Void>
The factory creates a newCallablefor each item of the source iterable. The list of callables is then returned from thecreateTasks(int)method. The size of the thread pool is not considered.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description TaskPerItemTaskFactory(Iterable<? extends T> iterable)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<Callable<Void>>createTasks(int threadPoolSize)protected abstract voiddoWork(T item)
-