We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
ReferencesDrive KitAndroidcom.huawei.cloud.base.batchInterface SummaryBatchCallback

BatchCallback

Expand

Interface Info

public interface BatchCallback<T, E>

BatchCallback API.

Public Method Summary

Expand

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

onSuccess

Expand

Method

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

Executes when batch processing is successful.

Parameters

Expand

Name

Description

t

Data model instance.

responseHeaders

Batch request header.

Throws

Expand

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.

onFailure

Expand

Method

void onFailure(E e, HttpHeaders responseHeaders) throws IOException

Executes when batch processing fails.

Parameters

Expand

Name

Description

e

Instance of a failure response.

responseHeaders

Batch request header.

Throws

Expand

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.

Search in References
Enter a keyword.