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 the number of leading parts of the topic path the metric collector should use to group results.
By default a topic metric collector does not group by the topic path prefix. If a positive number of parts is specified, it will enable grouping.
the number of leading parts of the topic path to group by; set to 0 to disable grouping by path
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
Specifies whether the metric collector should group by topic view.
By default a topic metric collector does not group by topic view.
true to indicate that the collector should group by topic view.
this builder.
Set the maximum number of groups maintained by the metric collector.
By default, the number of groups is not limited.
a positive integer
Reset the builder.
this Builder
A topic metric collector builder.
A builder of this type may be created using newTopicMetricCollectorBuilder and used to create instances of TopicMetricCollector that can be supplied to putTopicMetricCollector.