public interface TaskManager extends TaskSubmitter, Closeable
The base TaskManager interface.
Provides common methods for scheduling tasks for execution and stopping task execution. At the moment it assumes that upon construction, some threads will be started that take care of consuming the elements of the queue.
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
start()
Make sure the manager is initialized and starts processing tasks
|
void |
stopTask(TaskId id)
Stop a Scheduled, Paused or Running task.
|
TaskStateStorage |
storage()
Return the StateStorage instance that is used by this class.
|
addTaskCompletableFuture<Void> start()
void stopTask(TaskId id)
id - ID of task to stop.TaskStateStorage storage()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.