public final class MultiQueueTaskManager extends Object implements TaskManager
| Constructor and Description |
|---|
MultiQueueTaskManager(EngineID engineId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(TaskState taskState)
Schedule a single shot/one off BackgroundTask to run after a @delay in milliseconds.
|
void |
close() |
void |
stopTask(TaskId id)
Stop a Scheduled, Paused or Running task.
|
TaskStateStorage |
storage()
Return the StateStorage instance that is used by this class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchooseStoragepublic MultiQueueTaskManager(EngineID engineId)
public void close()
close in interface AutoCloseablepublic void addTask(TaskState taskState)
TaskManageraddTask in interface TaskManagertaskState - Task to executepublic void stopTask(TaskId id)
TaskManagerstopTask in interface TaskManagerid - ID of task to stop.public TaskStateStorage storage()
TaskManagerstorage in interface TaskManagerCopyright © 2017 Grakn Labs Ltd. All rights reserved.