This class is populated by FlowController, which will record throttling events. Currently it
only keeps the last flow control event, but it could be expanded to record more information in
the future. The events can be used to dynamically adjust concurrency in the client. For example:
// Increase flow control limits if there was throttling in the past 5 minutes and throttled time// was longer than 1 minute.while(true){FlowControlEventevent=flowControlEventStats.getLastFlowControlEvent();if(event!=null && event.getTimestampMs() > System.currentMillis()-TimeUnit.MINUTES.toMillis(5) && event.getThrottledTimeInMs() > TimeUnit.MINUTES.toMillis(1)){flowController.increaseThresholds(elementSteps,byteSteps);}Thread.sleep(TimeUnit.MINUTE.toMillis(10));}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `FlowControlEventStats` class in the Google Cloud API Client Library for Java, specifically within the `com.google.api.gax.batching` package."],["The `FlowControlEventStats` class is designed to record and track statistics related to flow control events, particularly throttling, and it is populated by the `FlowController`."],["The class includes a method, `getLastFlowControlEvent()`, which can be utilized to retrieve the most recent flow control event, which can be used to dynamically adjust concurrency settings in the client."],["The content provided details the history and documentation of the `FlowControlEventStats` class, and has links to documentation for different version releases, ranging from version 2.63.1 (latest) to version 2.7.1."],["The class inherits from `java.lang.Object` and it includes inherited members, a constructor `FlowControlEventStats()`, as well as the `getLastFlowControlEvent()` method."]]],[]]