Class AccumulatingBatchReceiver<T>

    • Constructor Detail

      • AccumulatingBatchReceiver

        public AccumulatingBatchReceiver​(ApiFuture<?> retFuture)
    • Method Detail

      • validateBatch

        public void validateBatch​(T message)
        Description copied from interface: ThresholdBatchReceiver
        Validate that the batch can be received by this ThresholdBatchReceiver. This is called to validate a batch before it is sent to the ThresholdBatcher.
        Specified by:
        validateBatch in interface ThresholdBatchReceiver<T>
      • getBatches

        public List<T> getBatches()
        Returns the accumulated batches. If called concurrently with processBatch, the new batch may or may not be returned.