目录

BatchCallback

Interface Info

public interface BatchCallback<T, E>

BatchCallback API.

Public Method Summary

Qualifier and Type

Method Name and Description

void

onFailure(E e, HttpHeaders responseHeaders)

Executes when batch processing fails.

void

onSuccess(T t, HttpHeaders responseHeaders)

Executes when batch processing is successful.

Public Methods

[h2]onSuccess

Method

void onSuccess(T t, HttpHeaders responseHeaders) throws IOException;

Executes when batch processing is successful.

Parameters

Name

Description

t

Data model instance.

responseHeaders

Batch request header.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

[h2]onFailure

Method

void onFailure(E e, HttpHeaders responseHeaders) throws IOException

Executes when batch processing fails.

Parameters

Name

Description

e

Instance of a failure response.

responseHeaders

Batch request header.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.