目录

interface info
public interface BatchCallback<T,E>
BatchCallback API.

Public Method Summary

Return typeMethod name
void

onSuccess(T t, HttpHeaders responseHeaders)

Executes when batch processing is successful.

void

onFailure(E e, HttpHeaders responseHeaders)

Executes when batch processing fails.

Public Methods

Method
void onSuccess(T t, HttpHeaders responseHeaders) throws IOException;
Executes when batch processing is successful.

Parameters

Parameter nameParameter desc
tData model instance.
responseHeadersBatch request header.

Throws

Parameter nameParameter desc
java.io.IOExceptionI/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 nameParameter desc
eInstance of a failure response.
responseHeadersBatch request header.

Throws

Parameter nameParameter desc
java.io.IOExceptionI/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.