public interface BackgroundTask
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
pause()
Called to suspend the execution of a currently running task.
|
void |
restart()
Called to restart a task regardless of where it is in its execution.
|
void |
resume(Map<String,Object> m)
Called to restore state necessary for execution to a previously suspended point by pause() however resume() itself
should not aim to resume execution as this will be accomplished by a subsequent call to start().
|
void |
start()
Called to start execution of the task, may be called on a newly scheduled or previously stopped task.,
|
void |
stop()
Called to stop execution of the task, may be called on a running or paused task.
|
void start()
void stop()
Map<String,Object> pause()
void resume(Map<String,Object> m)
m - Map<> as returned by pause()void restart()
Copyright © 2016 Grakn Labs Ltd. All rights reserved.