Class FlowController

java.lang.Object
com.google.api.gax.batching.FlowController

public class FlowController extends Object
Provides flow control capability.
  • Constructor Details

  • Method Details

    • reserve

      public void reserve(long elements, long bytes) throws FlowController.FlowControlException
      Throws:
      FlowController.FlowControlException
    • release

      public void release(long elements, long bytes)
    • increaseThresholds

      @InternalApi("For google-cloud-java client use only") public void increaseThresholds(long elementSteps, long byteSteps)
      Increase flow control limits to allow extra elementSteps elements and byteSteps request bytes before enforcing flow control.
    • decreaseThresholds

      @InternalApi("For google-cloud-java client use only") public void decreaseThresholds(long elementSteps, long byteSteps)
      Decrease flow control limits to allow elementSteps fewer elements and byteSteps fewer request bytes before enforcing flow control.
    • getMaxElementCountLimit

      @InternalApi("For internal use by google-cloud-java clients only") @Nullable public Long getMaxElementCountLimit()
    • getMaxRequestBytesLimit

      @InternalApi("For internal use by google-cloud-java clients only") @Nullable public Long getMaxRequestBytesLimit()
    • getMinElementCountLimit

      @InternalApi("For google-cloud-java client use only") @Nullable public Long getMinElementCountLimit()
    • getMinRequestBytesLimit

      @InternalApi("For google-cloud-java client use only") @Nullable public Long getMinRequestBytesLimit()
    • getCurrentElementCountLimit

      @InternalApi("For google-cloud-java client use only") @Nullable public Long getCurrentElementCountLimit()
    • getCurrentRequestBytesLimit

      @InternalApi("For google-cloud-java client use only") @Nullable public Long getCurrentRequestBytesLimit()
    • getFlowControlEventStats

      @InternalApi("For google-cloud-java client use only") public FlowControlEventStats getFlowControlEventStats()