Package org.linuxforhealth.fhir.task.api
Interface ITaskCollector
-
- All Known Implementing Classes:
TaskManager
public interface ITaskCollector
Manage the Tasks
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<ITaskGroup>
getFailedTaskGroups()
Return a list of all theITaskGroup
objects which ran but failed This list does not contain any task groups which were not started (because they have dependencies on task groups which failed).ITaskGroup
makeTaskGroup(java.lang.String taskId, java.lang.Runnable r, java.util.List<ITaskGroup> children)
Add the given task to the task groupvoid
startAndWait()
Process the tasks, starting with the childless leaf tasks, waiting for everything to complete
-
-
-
Method Detail
-
makeTaskGroup
ITaskGroup makeTaskGroup(java.lang.String taskId, java.lang.Runnable r, java.util.List<ITaskGroup> children)
Add the given task to the task group- Parameters:
taskId
- the parent to tell when we're done. Can be nullr
- the runnable to call to process the taskchildren
-- Returns:
-
startAndWait
void startAndWait()
Process the tasks, starting with the childless leaf tasks, waiting for everything to complete
-
getFailedTaskGroups
java.util.Collection<ITaskGroup> getFailedTaskGroups()
Return a list of all theITaskGroup
objects which ran but failed This list does not contain any task groups which were not started (because they have dependencies on task groups which failed).- Returns:
-
-