Package com.google.api.gax.batching
Class BatchingFlowController<T>
- java.lang.Object
-
- com.google.api.gax.batching.BatchingFlowController<T>
-
public class BatchingFlowController<T> extends Object
Wraps aFlowControllerfor use by batching.
-
-
Constructor Summary
Constructors Constructor Description BatchingFlowController(FlowController flowController, ElementCounter<T> elementCounter, ElementCounter<T> byteCounter)
-
-
-
Constructor Detail
-
BatchingFlowController
public BatchingFlowController(FlowController flowController, ElementCounter<T> elementCounter, ElementCounter<T> byteCounter)
-
-
Method Detail
-
reserve
public void reserve(T batch) throws FlowController.FlowControlException
-
release
public void release(T batch)
-
-