public abstract class IterativeWorkerTaskFactory<T> extends Object implements org.jboss.weld.manager.api.ExecutorServices.TaskFactory<Void>
| Constructor and Description |
|---|
IterativeWorkerTaskFactory(Iterable<? extends T> iterable) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup()
Called after the computation finishes.
|
List<Callable<Void>> |
createTasks(int threadPoolSize) |
protected abstract void |
doWork(T item) |
Queue<T> |
getQueue() |
protected void |
init()
Called before the compilation begins.
|
public List<Callable<Void>> createTasks(int threadPoolSize)
createTasks in interface org.jboss.weld.manager.api.ExecutorServices.TaskFactory<Void>protected void init()
protected void cleanup()
protected abstract void doWork(T item)
Copyright © 2017. All rights reserved.