@BetaApi(value="The surface for batching is not stable yet and may change in the future.")
public interface BatchingThreshold<E>
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(E e)
Presents the element to the threshold for the attribute of interest to be accumulated.
|
BatchingThreshold<E> |
copyWithZeroedValue()
Make a copy of this threshold but with the accumulated value zeroed.
|
boolean |
isThresholdReached()
Any calls into this function from ThresholdBatcher will be under a lock.
|
void accumulate(E e)
Any calls into this function from ThresholdBatcher will be under a lock.
boolean isThresholdReached()
BatchingThreshold<E> copyWithZeroedValue()
Any calls into this function from ThresholdBatcher will be under a lock.