Class BatcherFactory<RequestT,​ResponseT>


  • @InternalApi
    public final class BatcherFactory<RequestT,​ResponseT>
    extends java.lang.Object
    A Factory class which, for each unique partitionKey, creates a trio including a ThresholdBatcher, BatchExecutor, and ThresholdBatchingForwarder. The ThresholdBatchingForwarder pulls items from the ThresholdBatcher and forwards them to the BatchExecutor for processing.

    This is public only for technical reasons, for advanced usage.

    • Method Detail

      • getPushingBatcher

        public ThresholdBatcher<Batch<RequestT,​ResponseT>> getPushingBatcher​(PartitionKey partitionKey)
        Provides the ThresholdBatcher corresponding to the given partitionKey, or constructs one if it doesn't exist yet. The implementation is thread-safe.
      • getBatchingSettings

        @InternalApi
        public BatchingSettings getBatchingSettings()
        Returns the BatchingSettings object that is associated with this factory.

        This is public only for technical reasons, for advanced usage.