public class BatchSizeMetric extends Object
| Constructor and Description |
|---|
BatchSizeMetric() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
harvest(Function<org.HdrHistogram.Histogram,T> consumer)
Allows consuming histogram and returning a result.
|
void |
record(int batchSize)
Records a batch size.
|
public void record(int batchSize)
batchSize - batch sizepublic <T> T harvest(Function<org.HdrHistogram.Histogram,T> consumer)
T - return type of a passed in functionconsumer - consumer for a harvested histogramCopyright © 2018. All rights reserved.