public interface TasksManagerInterface
TasksManager
,
TaskInterface
,
Task
Modifier and Type | Method and Description |
---|---|
void |
addTask(TaskInterface task)
add a task to the TaskManager
|
void |
cleanTasks(long maxTaskInactivityDuration)
Destroy all the old tasks from its list of tasks
|
void |
clearAllTasks()
Remove all the tasks from the TaskManager
|
TaskInterface |
getTaskById(int taskId)
Return the task corresponding to the id given
in parameter
|
int |
getTaskId(TaskInterface task)
Return the id of the task given as parameter
|
void |
removeTask(TaskInterface task)
Remove a task from the TaskManager
|
void addTask(TaskInterface task)
task
- the task to add to the the TaskInterface=void removeTask(TaskInterface task)
task
- the TaskInterface to remove from the
TaskManagerint getTaskId(TaskInterface task)
task
- the task of which the id will be givenTaskInterface getTaskById(int taskId)
taskId
- the id of which the task will be givenvoid clearAllTasks()
void cleanTasks(long maxTaskInactivityDuration)