public interface TaskCallback<K,V>
Modifier and Type | Method and Description |
---|---|
void |
onException(ObsException exception,
V singleRequest)
当任务执行抛出异常时回调
|
void |
onSuccess(K result)
当任务执行成功时回调
|
void onSuccess(K result)
result
- 回调参数,通常使用具体操作的返回类型void onException(ObsException exception, V singleRequest)
exception
- 异常信息singleRequest
- 引发异常的单次请求Copyright © 2021. All rights reserved.