public final class LoggingTaskListener<Response> extends Object implements TaskListener<Response>
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static <Response> TaskListener<Response> |
instance()
Get the instance of LoggingActionListener cast appropriately.
|
void |
onFailure(Task task,
Throwable e)
A failure caused by an exception at some phase of the task.
|
void |
onResponse(Task task,
Response response)
Handle task response.
|
public static <Response> TaskListener<Response> instance()
public void onResponse(Task task, Response response)
TaskListeneronResponse インタフェース内 TaskListener<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 taskpublic void onFailure(Task task, Throwable e)
TaskListeneronFailure インタフェース内 TaskListener<Response>task - the task being executed. May be null if the action doesn't
create a taske - the failureCopyright © 2009–2016. All rights reserved.