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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-04 UTC."],[[["This webpage provides documentation for the `FlowControlEventStats` class, which is used to record statistics of flow control events in the Google API Client Libraries for Java."],["The `FlowControlEventStats` class records throttling events and is designed to help dynamically adjust concurrency in the client based on these events."],["The class currently tracks the last flow control event, which includes information such as the timestamp and the duration of throttling, but may store more data in future versions."],["The page lists available versions of the documentation for this class, ranging from the latest version, 2.63.1, down to version 2.7.1, and the page also displays version 2.45.0 as its current version."],["The class includes a constructor `FlowControlEventStats()` and the method `getLastFlowControlEvent()`, which returns the most recent `FlowControlEvent` that was tracked."]]],[]]