@BetaApi(value="The surface for batching is not stable yet and may change in the future.") public final class AccumulatingBatchReceiver<T> extends Object implements ThresholdBatchReceiver<T>
| Constructor and Description |
|---|
AccumulatingBatchReceiver() |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getBatches()
Returns the accumulated batches.
|
com.google.api.core.ApiFuture<?> |
processBatch(T batch)
Process the given batch asynchronously.
|
void |
validateBatch(T message)
Validate that the batch can be received by this ThresholdBatchReceiver.
|
public void validateBatch(T message)
ThresholdBatchReceivervalidateBatch in interface ThresholdBatchReceiver<T>public com.google.api.core.ApiFuture<?> processBatch(T batch)
ThresholdBatchReceiverprocessBatch in interface ThresholdBatchReceiver<T>