Interface RpcBatch.Callback<T> (2.30.0)

publicstaticinterface RpcBatch.Callback<T>

An interface for batch callbacks.

Type Parameter

Name Description
T

Methods

onFailure(GoogleJsonError googleJsonError)

publicabstractvoidonFailure(GoogleJsonErrorgoogleJsonError)

This method will be called upon failure of the batch operation.

Parameter
Name Description
googleJsonError com.google.api.client.googleapis.json.GoogleJsonError

onSuccess(T response)

publicabstractvoidonSuccess(Tresponse)

This method will be called upon success of the batch operation.

Parameter
Name Description
response T

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.