public static class HistogramImpl.Builder extends AbstractBuilder<Histogram.Builder,Histogram,HistogramImpl> implements Histogram.Builder
meterId| Constructor and Description |
|---|
Builder(MeterId meterId) |
Builder(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(HistogramImpl meter)
Accept the new meter when register, could use it to judge histogram buckets is correct.
|
HistogramImpl |
create(MeterId meterId)
Create a meter
|
MeterId.MeterType |
getType()
Get supported build meter type
|
HistogramImpl.Builder |
minValue(double minValue)
Setting min value, default is zero
|
HistogramImpl.Builder |
steps(List<Double> steps)
Setting bucket steps
|
build, getMeterId, tagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, tagpublic HistogramImpl.Builder steps(List<Double> steps)
steps in interface Histogram.Builderpublic HistogramImpl.Builder minValue(double minValue)
minValue in interface Histogram.Builderpublic void accept(HistogramImpl meter)
AbstractBuilderaccept in class AbstractBuilder<Histogram.Builder,Histogram,HistogramImpl>public HistogramImpl create(MeterId meterId)
AbstractBuildercreate in class AbstractBuilder<Histogram.Builder,Histogram,HistogramImpl>public MeterId.MeterType getType()
AbstractBuildergetType in class AbstractBuilder<Histogram.Builder,Histogram,HistogramImpl>Copyright © 2020 The Apache Software Foundation. All rights reserved.