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-08-15 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eBatchResource\u003c/code\u003e is 2.63.1, and a range of previous versions are also available for reference, spanning down to version 2.7.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBatchResource\u003c/code\u003e is an interface that represents a resource used by a batch, including element and byte counts, which can also be extended.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eadd(BatchResource resource)\u003c/code\u003e method allows for the addition of an extra resource to the \u003ccode\u003eBatchResource\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetByteCount()\u003c/code\u003e and \u003ccode\u003egetElementCount()\u003c/code\u003e methods return the respective byte and element counts of the resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eshouldFlush(long maxElementThreshold, long maxBytesThreshold)\u003c/code\u003e method determines if a \u003ccode\u003eBatchResource\u003c/code\u003e needs to be flushed based on the provided element and byte thresholds.\u003c/p\u003e\n"]]],[],null,[]]