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