Class HelixHttpMetricsInterceptor.Builder
java.lang.Object
com.helixframework.okhttp.metrics.HelixHttpMetricsInterceptor.Builder
- Enclosing class:
- HelixHttpMetricsInterceptor
Builder class for creating instances of HelixMetricsInterceptor.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance of HelixHttpMetricsInterceptor.meterRegistries(Set<io.micrometer.core.instrument.MeterRegistry> meterRegistries) Adds the provided MeterRegistry instances to the list of meterRegistries in the Builder.meterRegistry(io.micrometer.core.instrument.MeterRegistry meterRegistry) Adds the provided MeterRegistry to the list of meterRegistries in the Builder.
-
Method Details
-
meterRegistry
public HelixHttpMetricsInterceptor.Builder meterRegistry(io.micrometer.core.instrument.MeterRegistry meterRegistry) Adds the provided MeterRegistry to the list of meterRegistries in the Builder.- Parameters:
meterRegistry- the MeterRegistry to add- Returns:
- the Builder instance
-
meterRegistries
public HelixHttpMetricsInterceptor.Builder meterRegistries(Set<io.micrometer.core.instrument.MeterRegistry> meterRegistries) Adds the provided MeterRegistry instances to the list of meterRegistries in the Builder.- Parameters:
meterRegistries- the set of MeterRegistry instances to add- Returns:
- the Builder instance
-
build
Builds an instance of HelixHttpMetricsInterceptor.- Returns:
- a new instance of the HelixHttpMetricsInterceptor class
-