@BetaApi(value="The surface for batching is not stable yet and may change in the future.") public class BatchingFlowController<T> extends Object
FlowController for use by batching.| Constructor and Description |
|---|
BatchingFlowController(FlowController flowController,
ElementCounter<T> elementCounter,
ElementCounter<T> byteCounter) |
public BatchingFlowController(FlowController flowController, ElementCounter<T> elementCounter, ElementCounter<T> byteCounter)
public void reserve(T batch) throws FlowController.FlowControlException
public void release(T batch)