LoggingTaskListenerpublic interface TaskListener<Response>
| Modifier and Type | Method | Description |
|---|---|---|
void |
onFailure(Task task,
java.lang.Throwable e) |
A failure caused by an exception at some phase of the task.
|
void |
onResponse(Task task,
Response response) |
Handle task response.
|
void onResponse(Task task, Response response)
task - the task being executed. May be null if the action doesn't
create a taskresponse - the response from the action that executed the taskvoid onFailure(Task task, java.lang.Throwable e)
task - the task being executed. May be null if the action doesn't
create a taske - the failure