public static class CounterImpl.Builder extends AbstractBuilder<Counter.Builder,Counter,CounterImpl> implements Counter.Builder
meterId| Constructor and Description |
|---|
Builder(MeterId meterId) |
Builder(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
accept(CounterImpl meter)
Accept the new meter when register, could use it to judge histogram buckets is correct.
|
protected Counter |
create(MeterId meterId)
Create a meter
|
protected MeterId.MeterType |
getType()
Get supported build meter type
|
CounterImpl.Builder |
mode(Counter.Mode mode)
Setting counter mode
|
build, getMeterId, tagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, tagpublic CounterImpl.Builder mode(Counter.Mode mode)
mode in interface Counter.Builderprotected void accept(CounterImpl meter) throws IllegalArgumentException
AbstractBuilderaccept in class AbstractBuilder<Counter.Builder,Counter,CounterImpl>IllegalArgumentException - if cannot be accept, throws informationprotected Counter create(MeterId meterId)
AbstractBuildercreate in class AbstractBuilder<Counter.Builder,Counter,CounterImpl>protected MeterId.MeterType getType()
AbstractBuildergetType in class AbstractBuilder<Counter.Builder,Counter,CounterImpl>Copyright © 2020 The Apache Software Foundation. All rights reserved.