Class BatchedRequestIssuer<ResponseT>


  • public final class BatchedRequestIssuer<ResponseT>
    extends java.lang.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.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getMessageCount()  
      void sendResult()
      Sends back the result that was stored by either setResponse or setException
      void setException​(java.lang.Throwable throwable)
      Set the exception to set on the batched future.
      void setResponse​(ResponseT response)
      Set the response to set on the batched future.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.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