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