public class BlockingTaskManager extends 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)
TaskManagersubmit in interface TaskManagertask - the task to runpublic void remove(Task task)
TaskManagerremove in interface TaskManagertask - the task to removepublic Task.Status getStatus(Task task)
TaskManagergetStatus in interface TaskManagertask - the taskpublic void cancel(Task task)
TaskManagercancel in interface TaskManagertask - the task to cancelCopyright © 2019. All rights reserved.