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-03-21 UTC."],[[["The latest version available for `BatchResource` is 2.63.1, with various other versions listed, dating back to version 2.7.1."],["`BatchResource` is a Java interface that represents resources used in batching, including element and byte counts, and can be extended for flow control and batch flushing."],["The `add` method of the `BatchResource` interface allows for the addition of another `BatchResource` and returns the newly modified `BatchResource`."],["The interface includes methods `getByteCount` and `getElementCount` to retrieve the byte and element count of a resource, respectively, both returning a long type."],["The `shouldFlush` method checks if a `BatchResource` should be flushed based on specified thresholds for maximum element count and maximum byte count, returning a boolean."]]],[]]