| interface info |
| public interface BatchCallback<T,E> |
| BatchCallback API. |
| Return type | Method name |
| void | onSuccess(T t, HttpHeaders responseHeaders) Executes when batch processing is successful. |
| void | onFailure(E e, HttpHeaders responseHeaders) Executes when batch processing fails. |
| Method |
| void onSuccess(T t, HttpHeaders responseHeaders) throws IOException; |
| Executes when batch processing is successful. |
Parameters
| Parameter name | Parameter desc |
| t | Data model instance. |
| responseHeaders | Batch request header. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
| Method |
void onFailure(E e, HttpHeaders responseHeaders) throws IOException; |
| Executes when batch processing fails. |
Parameters
| Parameter name | Parameter desc |
| e | Instance of a failure response. |
| responseHeaders | Batch request header. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |