Package com.google.api.gax.rpc
Class BatchedRequestIssuer<ResponseT>
java.lang.Object
com.google.api.gax.rpc.BatchedRequestIssuer<ResponseT>
BatchedRequestIssuer receives a response or an exception and waits to set the given batchedFuture
until sendResult() is called.
This class is designed to be used by generated code.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchedRequestIssuer(BatchedFuture<ResponseT> batchedFuture, long messageCount) -
Method Summary
Modifier and TypeMethodDescriptionlongvoidSends back the result that was stored by either setResponse or setExceptionvoidsetException(Throwable throwable) Set the exception to set on the batched future.voidsetResponse(ResponseT response) Set the response to set on the batched future.
-
Constructor Details
-
BatchedRequestIssuer
-
-
Method Details
-
getMessageCount
public long getMessageCount() -
setResponse
Set the response to set on the batched future. If this is called, setException cannot be called. -
setException
Set the exception to set on the batched future. If this is called, setResponse cannot be called. -
sendResult
public void sendResult()Sends back the result that was stored by either setResponse or setException
-