public class PostProcessingTask extends Object implements BackgroundTask
| Constructor and Description |
|---|
PostProcessingTask() |
| 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.
|
public void start()
BackgroundTaskstart in interface BackgroundTaskpublic void stop()
BackgroundTaskstop in interface BackgroundTaskpublic Map<String,Object> pause()
BackgroundTaskpause in interface BackgroundTaskpublic void resume(Map<String,Object> m)
BackgroundTaskresume in interface BackgroundTaskm - Map<> as returned by pause()public void restart()
BackgroundTaskrestart in interface BackgroundTaskCopyright © 2016 Grakn Labs Ltd. All rights reserved.