@InternalApi public final class BatcherFactory<RequestT,ResponseT> extends Object
This is public only for technical reasons, for advanced usage.
| Constructor and Description |
|---|
BatcherFactory(BatchingDescriptor<RequestT,ResponseT> batchingDescriptor,
BatchingSettings batchingSettings,
ScheduledExecutorService executor,
FlowController flowController) |
| Modifier and Type | Method and Description |
|---|---|
BatchingSettings |
getBatchingSettings()
Returns the BatchingSettings object that is associated with this factory.
|
ThresholdBatcher<Batch<RequestT,ResponseT>> |
getPushingBatcher(PartitionKey partitionKey)
Provides the ThresholdBatcher corresponding to the given partitionKey, or constructs one if it
doesn't exist yet.
|
public BatcherFactory(BatchingDescriptor<RequestT,ResponseT> batchingDescriptor, BatchingSettings batchingSettings, ScheduledExecutorService executor, FlowController flowController)
public ThresholdBatcher<Batch<RequestT,ResponseT>> getPushingBatcher(PartitionKey partitionKey)
@InternalApi public BatchingSettings getBatchingSettings()
This is public only for technical reasons, for advanced usage.