AsyncRequest.SettableFutureCallback

public static class AsyncRequest.SettableFutureCallback extends JsonBatchCallback<T>
implements AsyncRequest.EventStartCallback

JsonBatchCallback wrapper which updates ListenableFuture associated with individual batched request.

Public Method Summary

void
onFailure(GoogleJsonError error, HttpHeaders responseHeaders)
Wrapper on onFailure(E, HttpHeaders) to record failure while executing batched request.
void
onStart()
Record start of processing / execution for batched request.
void
onSuccess(T t, HttpHeaders responseHeaders)
Wrapper on onSuccess(T, HttpHeaders) to record successful execution of batched request.

Inherited Method Summary

Public Methods

public void onFailure (GoogleJsonError error, HttpHeaders responseHeaders)

Wrapper on onFailure(E, HttpHeaders) to record failure while executing batched request.

Parameters
error
responseHeaders

public void onStart ()

Record start of processing / execution for batched request.

public void onSuccess (T t, HttpHeaders responseHeaders)

Wrapper on onSuccess(T, HttpHeaders) to record successful execution of batched request.

Parameters
t
responseHeaders
Throws
IOException