Class FlowController


  • public class FlowController
    extends java.lang.Object
    Provides flow control capability.
    • Method Detail

      • 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 java.lang.Long getMaxElementCountLimit()
      • getMaxRequestBytesLimit

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

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

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

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

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

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