T
- the type of the processed itemspublic abstract class TaskPerItemTaskFactory<T> extends Object implements org.jboss.weld.manager.api.ExecutorServices.TaskFactory<Void>
Callable
for each item of the source iterable. The list of callables is then returned from
the createTasks(int)
method. The size of the thread pool is not considered.Constructor and Description |
---|
TaskPerItemTaskFactory(Iterable<? extends T> iterable) |
Modifier and Type | Method and Description |
---|---|
List<Callable<Void>> |
createTasks(int threadPoolSize) |
protected abstract void |
doWork(T item) |
Copyright © 2016. All rights reserved.