public interface ITaskService
Modifier and Type | Method and Description |
---|---|
void |
cancel(Long taskId)
Cancel the task with given taskId.
|
void |
finish(Long taskId)
Cleanup the task with the given taskId and remove it from the task service.
|
List<Task.Message> |
getMessages(Long taskId) |
Progression |
getProgression(Long taskId)
Get the current progression of a task.
|
Long |
schedule(Task task)
Schedules the task, but doesn't start!
|
Long |
scheduleAndStart(Task task)
Schedule and start a task.
|
void |
start(Long taskId)
Start the task with given taskId
|
Long schedule(Task task)
task
- The task to schedulevoid start(Long taskId)
taskId
- void cancel(Long taskId)
taskId
- void finish(Long taskId)
taskId
- Long scheduleAndStart(Task task)
Long taskId = taskService.schedule(task); taskService.start(taskId);
task
- Progression getProgression(Long taskId)
taskId
- List<Task.Message> getMessages(Long taskId)
Copyright © 2015. All rights reserved.