Class BulkheadMetricNames
java.lang.Object
io.github.resilience4j.micrometer.tagged.BulkheadMetricNames
public class BulkheadMetricNames
extends java.lang.Object
Defines possible configuration for metric names.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBulkheadMetricNames.BuilderHelps building custom instance ofBulkheadMetricNames. -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_BULKHEAD_AVAILABLE_CONCURRENT_CALLS_METRIC_NAMEstatic java.lang.StringDEFAULT_BULKHEAD_MAX_ALLOWED_CONCURRENT_CALLS_METRIC_NAME -
Constructor Summary
Constructors Modifier Constructor Description protectedBulkheadMetricNames() -
Method Summary
Modifier and Type Method Description static BulkheadMetricNames.Buildercustom()Returns a builder for creating custom metric names.java.lang.StringgetAvailableConcurrentCallsMetricName()Returns the metric name for bulkhead concurrent calls, defaults to "resilience4j.bulkhead.available.concurrent.calls".java.lang.StringgetMaxAllowedConcurrentCallsMetricName()Returns the metric name for bulkhead max available concurrent calls, defaults to "resilience4j.bulkhead.max.allowed.concurrent.calls".static BulkheadMetricNamesofDefaults()Returns default metric names.
-
Field Details
-
DEFAULT_BULKHEAD_AVAILABLE_CONCURRENT_CALLS_METRIC_NAME
public static final java.lang.String DEFAULT_BULKHEAD_AVAILABLE_CONCURRENT_CALLS_METRIC_NAME- See Also:
- Constant Field Values
-
DEFAULT_BULKHEAD_MAX_ALLOWED_CONCURRENT_CALLS_METRIC_NAME
public static final java.lang.String DEFAULT_BULKHEAD_MAX_ALLOWED_CONCURRENT_CALLS_METRIC_NAME- See Also:
- Constant Field Values
-
-
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
public java.lang.String getAvailableConcurrentCallsMetricName()Returns the metric name for bulkhead concurrent calls, defaults to "resilience4j.bulkhead.available.concurrent.calls".- Returns:
- The available concurrent calls metric name.
-
getMaxAllowedConcurrentCallsMetricName
public java.lang.String 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.
-