@BetaApi(value="The surface for batching is not stable yet and may change in the future.") public final class BatchedRequestIssuer<ResponseT> extends Object
This class is designed to be used by generated code.
| Constructor and Description |
|---|
BatchedRequestIssuer(BatchedFuture<ResponseT> batchedFuture,
long messageCount) |
| Modifier and Type | Method and Description |
|---|---|
long |
getMessageCount() |
void |
sendResult()
Sends back the result that was stored by either setResponse or setException
|
void |
setException(Throwable throwable)
Set the exception to set on the batched future.
|
void |
setResponse(ResponseT response)
Set the response to set on the batched future.
|
public BatchedRequestIssuer(BatchedFuture<ResponseT> batchedFuture, long messageCount)
public long getMessageCount()
public void setResponse(ResponseT response)
public void setException(Throwable throwable)
public void sendResult()