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