Create a new TopicMetricCollector using the values currently known to this builder.
the name of the TopicMetricCollector
the selector pattern that specifies the topics for which metrics are to be collected
a new TopicMetricCollector with all of the current settings of this builder
Specifies whether the metric collector should export metrics to Prometheus or not.
The default is that metrics are not exported to Prometheus.
this builder
Specifies whether the metric collector should group by topic type.
By default a topic metric collector does not group by topic type.
true to indicate that the collector should group by topic type
this builder
Reset the builder.
this Builder
A topic metric collector builder.
A builder of this type may be created using {@link Diffusion.newTopicMetricCollectorBuilder newTopicMetricCollectorBuilder} and used to create instances of TopicMetricCollector that can be supplied to putTopicMetricCollector.