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-09-03 UTC."],[[["\u003cp\u003eThis webpage provides documentation for \u003ccode\u003eFlowControlEventStats\u003c/code\u003e, a class used to record flow control event statistics.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 2.63.1, and the page includes links to the documentation for numerous previous versions, dating back to 2.7.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFlowControlEventStats\u003c/code\u003e is designed to be populated by \u003ccode\u003eFlowController\u003c/code\u003e, and currently it will only track the last flow control event that it recieves, however, it could be expanded to hold more information in the future.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eFlowControlEventStats\u003c/code\u003e offers a method \u003ccode\u003egetLastFlowControlEvent()\u003c/code\u003e, that returns the type \u003ccode\u003eFlowControlEventStats.FlowControlEvent\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFlowControlEventStats\u003c/code\u003e inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, and has inherited members like \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals(Object)\u003c/code\u003e, \u003ccode\u003ewait()\u003c/code\u003e, and \u003ccode\u003egetClass()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]