T - the type of the processed itemspublic abstract class TaskPerItemTaskFactory<T> extends Object implements 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) |
public List<Callable<Void>> createTasks(int threadPoolSize)
ExecutorServices.TaskFactorycreateTasks in interface ExecutorServices.TaskFactory<Void>threadPoolSize - the size of the underlying thread poolprotected abstract void doWork(T item)
Copyright © 2014. All Rights Reserved.