public abstract static class SimpleCollector.Builder<B extends SimpleCollector.Builder<B,C>,C extends SimpleCollector> extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract C |
create()
Return the constructed collector.
|
B |
help(String help)
Set the help string of the metric.
|
B |
labelNames(String... labelNames)
Set the labelNames of the metric.
|
B |
name(String name)
Set the name of the metric.
|
B |
namespace(String namespace)
Set the namespace of the metric.
|
C |
register()
Create and register the Collector with the default registry.
|
C |
register(CollectorRegistry registry)
Create and register the Collector with the given registry.
|
B |
subsystem(String subsystem)
Set the subsystem of the metric.
|
public Builder()
public B labelNames(String... labelNames)
public abstract C create()
Abstract due to generics limitations.
public C register(CollectorRegistry registry)
Copyright © 2015. All rights reserved.