public interface Task
Wrapper of a single compute task.
It is responsible for data consistency of the task.
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
java.lang.String |
className() |
void |
cleanUp() |
ListenableScheduledFuture<?> |
future() |
boolean |
isRunning() |
void |
pause() |
void |
resume() |
java.lang.Runnable |
runnable() |
void |
stop() |
boolean isRunning()
java.lang.String className()
ListenableScheduledFuture<?> future()
java.lang.IllegalStateException
- when task is not scheduled.java.lang.Runnable runnable()
java.lang.IllegalStateException
- when task is not scheduled.void pause()
void resume()
void stop()
void cleanUp()
void cancel()