Interface ExecutingTask.TaskLifecycleHandler
-
- Enclosing class:
- ExecutingTask
public static interface ExecutingTask.TaskLifecycleHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onComplete()
On completion, regardless of failure.void
onFailure(Exception e)
On failure.void
onProgress(String message)
When progress is made on the task.void
onStart()
Whenever the task execution begins.void
onSuccess()
On successful completion.
-
-
-
Method Detail
-
onStart
void onStart()
Whenever the task execution begins.
-
onProgress
void onProgress(String message)
When progress is made on the task.
-
onFailure
void onFailure(Exception e)
On failure.
-
onSuccess
void onSuccess()
On successful completion.
-
onComplete
void onComplete()
On completion, regardless of failure.
-
-