Package com.google.api.gax.batching
Interface ThresholdBatchReceiver<BatchT>
-
- All Known Implementing Classes:
AccumulatingBatchReceiver
public interface ThresholdBatchReceiver<BatchT>
Interface representing an object that receives batches from a ThresholdBatcher and takes action on them. Implementations of ThresholdBatchReceiver should be thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.api.core.ApiFuture<?>
processBatch(BatchT batch)
Process the given batch asynchronously.void
validateBatch(BatchT message)
Validate that the batch can be received by this ThresholdBatchReceiver.
-
-
-
Method Detail
-
validateBatch
void validateBatch(BatchT message)
Validate that the batch can be received by this ThresholdBatchReceiver. This is called to validate a batch before it is sent to the ThresholdBatcher.
-
processBatch
com.google.api.core.ApiFuture<?> processBatch(BatchT batch)
Process the given batch asynchronously.
-
-