接口 TaskCallback<K,V>
- 所有已知实现类:
LazyTaksCallback
public interface TaskCallback<K,V>
Task execution callback
-
方法概要
修饰符和类型方法说明voidonException(ObsException exception, V singleRequest) Callback when an exception is thrown during task execution.voidCallback when the task is executed successfully.
-
方法详细资料
-
onSuccess
Callback when the task is executed successfully.- 参数:
result- Callback parameter. Generally, the return type of a specific operation is used.
-
onException
Callback when an exception is thrown during task execution.- 参数:
exception- Exception informationsingleRequest- The request that causes an exception
-