public interface BackgroundTask extends AutoCloseable
Defines the API which must be implemented in order to be able to run the task in the background
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shutdown the task.
|
default int |
period() |
void |
run()
The primary method to execute when the
BackgroundTask starts executing |
default int period()
void run()
BackgroundTask starts executingvoid close()
close in interface AutoCloseableCopyright © 2018 Grakn Labs Ltd. All rights reserved.