Class BatchedRequestIssuer<ResponseT>


  • public final class BatchedRequestIssuer<ResponseT>
    extends Object
    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 Detail

      • BatchedRequestIssuer

        public BatchedRequestIssuer​(BatchedFuture<ResponseT> batchedFuture,
                                    long messageCount)
    • Method Detail

      • getMessageCount

        public long getMessageCount()
      • setResponse

        public void setResponse​(ResponseT response)
        Set the response to set on the batched future. If this is called, setException cannot be called.
      • setException

        public void setException​(Throwable throwable)
        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