Represent the resource used by a batch including element and byte. It can also be extended to
other things to determine if adding a new element needs to be flow controlled or if the current
batch needs to be flushed.
[[["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-04 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eBatchResource\u003c/code\u003e documentation is 2.63.1, with multiple prior versions available, ranging down to version 2.7.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBatchResource\u003c/code\u003e represents a resource used by a batch, including element and byte counts, and can determine if adding a new element requires flow control.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eadd\u003c/code\u003e method of \u003ccode\u003eBatchResource\u003c/code\u003e allows the addition of another \u003ccode\u003eBatchResource\u003c/code\u003e to the current batch, and returns the added resource.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetByteCount\u003c/code\u003e and \u003ccode\u003egetElementCount\u003c/code\u003e are methods to get the byte count and element count of the resource respectively, returning a long type.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eshouldFlush\u003c/code\u003e method determines if a \u003ccode\u003eBatchResource\u003c/code\u003e should be flushed based on \u003ccode\u003emaxElementThreshold\u003c/code\u003e and \u003ccode\u003emaxBytesThreshold\u003c/code\u003e parameters, returning a boolean.\u003c/p\u003e\n"]]],[],null,[]]