Class RetryMetricsCollector.MetricNames.Builder
java.lang.Object
io.github.resilience4j.prometheus.collectors.RetryMetricsCollector.MetricNames.Builder
- Enclosing class:
- RetryMetricsCollector.MetricNames
public static class RetryMetricsCollector.MetricNames.Builder
extends java.lang.Object
Helps building custom instance of
RetryMetricsCollector.MetricNames.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RetryMetricsCollector.MetricNamesbuild()BuildsRetryMetricsCollector.MetricNamesinstance.RetryMetricsCollector.MetricNames.BuildercallsMetricName(java.lang.String callsMetricName)Overrides the default metric name "resilience4j_retry_calls" with a given one.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
callsMetricName
Overrides the default metric name "resilience4j_retry_calls" with a given one.- Parameters:
callsMetricName- The metric name for retry calls.- Returns:
- The builder.
-
build
BuildsRetryMetricsCollector.MetricNamesinstance.- Returns:
- The built
RetryMetricsCollector.MetricNamesinstance.
-