[[["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\u003eThis webpage details the \u003ccode\u003eNumericThreshold\u003c/code\u003e class in the \u003ccode\u003ecom.google.api.gax.batching\u003c/code\u003e package, which is used for accumulating a count based on a provided \u003ccode\u003eElementCounter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNumericThreshold\u003c/code\u003e implements the \u003ccode\u003eBatchingThreshold\u003c/code\u003e interface and is designed to work with batching operations in Java applications, with the latest version being 2.63.1, and numerous versions ranging back to 2.7.1 are also listed on the page.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a constructor \u003ccode\u003eNumericThreshold(long threshold, ElementCounter<E> extractor)\u003c/code\u003e that creates an instance with a specific threshold and an \u003ccode\u003eElementCounter\u003c/code\u003e to extract numeric values from objects, and the threshold value is what dictates if an event can occur.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eaccumulate(E e)\u003c/code\u003e method is used to present an element to the threshold so that the attribute of interest can be accumulated, while the \u003ccode\u003eisThresholdReached()\u003c/code\u003e method can be used to check if a threshold has been reached.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ecopyWithZeroedValue()\u003c/code\u003e returns a new \u003ccode\u003eBatchingThreshold\u003c/code\u003e instance, identical to the original, but with its accumulated value reset to zero.\u003c/p\u003e\n"]]],[],null,[]]