public interface TaskManager
| Modifier and Type | Method and Description | 
|---|---|
| <V,C> TaskControl<V> | create(Task<V,C> task)Creates a new  TaskControlfor a given task. | 
| TaskControl | findTask(TaskPredicate predicate) | 
| TaskControl | getTask(String contextId)Looks up a task by the specified context id. | 
| TaskListenerSupport | getTaskListenerSupport()Allows to add listeners. | 
| Iterable<TaskControl> | getTasks(TaskPredicate predicate)Returns a collection of all currently created task conforming to
 the specified predicate. | 
| <T> Future<T> | submit(Callable<T> task)Submits a  Callableobject for execution. | 
| Future<?> | submit(Runnable task)Submits a  Runnableobject for execution. | 
<V,C> TaskControl<V> create(Task<V,C> task)
TaskControl for a given task. The state is
 set to Task.State.PENDING and the task is not started. That
 allows to add listeners for this task execution before starting
 it.
 
 Tasks created by this method will fire TaskEvents as
 appropriate. See TaskListener for details.V - C - task - TaskListenerSupport getTaskListenerSupport()
Iterable<TaskControl> getTasks(TaskPredicate predicate)
predicate - TaskControl findTask(TaskPredicate predicate)
TaskControl getTask(String contextId)
contextId - Future<?> submit(Runnable task)
Runnable object for execution. Contrary to executing
 Tasks this is more lightweight as it does not fire any events
 and is not managed by this manager.task -