Package org.jboss.weld.manager.api
Interface ExecutorServices.TaskFactory<T>
-
- Type Parameters:
T
- the type of the result of created tasks
- Enclosing interface:
- ExecutorServices
public static interface ExecutorServices.TaskFactory<T>
Instead of submitting a list of tasks to be executed a caller may submit a factory object capable of creating the list of tasks. The size of the underlying thread pool is passed as a parameter. An implementation may or may not consider this parameter when creating the task list.- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Callable<T>>
createTasks(int threadPoolSize)
Creates a list of tasks to be executed in a thread pool.
-