Class BulkheadMetricNames
java.lang.Object
io.github.resilience4j.micrometer.tagged.BulkheadMetricNames
Defines possible configuration for metric names.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHelps building custom instance ofBulkheadMetricNames. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BulkheadMetricNames.Buildercustom()Returns a builder for creating custom metric names.Returns the metric name for bulkhead concurrent calls, defaults to "resilience4j.bulkhead.available.concurrent.calls".Returns the metric name for bulkhead max available concurrent calls, defaults to "resilience4j.bulkhead.max.allowed.concurrent.calls".static BulkheadMetricNamesReturns default metric names.
-
Field Details
-
DEFAULT_BULKHEAD_AVAILABLE_CONCURRENT_CALLS_METRIC_NAME
- See Also:
-
DEFAULT_BULKHEAD_MAX_ALLOWED_CONCURRENT_CALLS_METRIC_NAME
- See Also:
-
-
Constructor Details
-
BulkheadMetricNames
protected BulkheadMetricNames()
-
-
Method Details
-
custom
Returns a builder for creating custom metric names. Note that names have default values, so only desired metrics can be renamed.- Returns:
- The builder.
-
ofDefaults
Returns default metric names.- Returns:
- The default
BulkheadMetricNamesinstance.
-
getAvailableConcurrentCallsMetricName
Returns the metric name for bulkhead concurrent calls, defaults to "resilience4j.bulkhead.available.concurrent.calls".- Returns:
- The available concurrent calls metric name.
-
getMaxAllowedConcurrentCallsMetricName
Returns the metric name for bulkhead max available concurrent calls, defaults to "resilience4j.bulkhead.max.allowed.concurrent.calls".- Returns:
- The max allowed concurrent calls metric name.
-