| interface info |
| public interface BatchCallback<T, E> |
| BatchCallback接口。 |
| Return type | Method name |
| void | onSuccess(T t, HttpHeaders responseHeaders) 批量处理成功响应的回调。 |
| void | onFailure(E e, HttpHeaders responseHeaders) 批量处理失败响应的回调。 |
| Method |
| void onSuccess(T t, HttpHeaders responseHeaders) throws IOException; |
| 批量处理成功响应的回调。 |
Parameters
| Parameter name | Parameter desc |
| t | 数据模型的实例。 |
| responseHeaders | 批量请求消息头。 |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | 若接口调用异常,会返回IOException。开发者可以通过getMessage()方法获取错误描述。 |
| Method |
void onFailure(E e, HttpHeaders responseHeaders) throws IOException |
| 批量处理失败响应的回调。 |
Parameters
| Parameter name | Parameter desc |
| e | 错误响应内容的实例。 |
| responseHeaders | 批量请求消息头。 |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | 若接口调用异常,会返回IOException。开发者可以通过getMessage()方法获取错误描述。 |