public interface Task
TaskRunner| Modifier and Type | Method and Description |
|---|---|
void |
finished(boolean completed,
Throwable t)
Will be called when the task is finished.
|
boolean |
isDone()
Implementors should return here whether this task is done, and
the
run() method should no longer be called |
void |
run()
Will be called repeatedly to actually run the task
|
void |
started()
Will be called before the task is run for the first time
|
void started()
void run()
boolean isDone()
run() method should no longer be calledvoid finished(boolean completed,
Throwable t)
Copyright © 2016. All rights reserved.