public class BlockingTaskManager extends java.lang.Object implements TaskManager
Constructor and Description |
---|
BlockingTaskManager() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(Task task)
Requests to cancel the task.
|
Task.Status |
getStatus(Task task)
Gets the task status.
|
void |
remove(Task task)
Removes a task from the task manager.
|
void |
submit(Task task)
Submits a task to run in the background.
|
public void submit(Task task)
TaskManager
submit
in interface TaskManager
task
- the task to runpublic void remove(Task task)
TaskManager
remove
in interface TaskManager
task
- the task to removepublic Task.Status getStatus(Task task)
TaskManager
getStatus
in interface TaskManager
task
- the taskpublic void cancel(Task task)
TaskManager
cancel
in interface TaskManager
task
- the task to cancelCopyright © 2010-2019 Planetary Data System. All Rights Reserved.