Class BulkheadMetricNames
- java.lang.Object
-
- io.github.resilience4j.micrometer.tagged.BulkheadMetricNames
-
public class BulkheadMetricNames extends java.lang.ObjectDefines 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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
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
-
-
Method Detail
-
custom
public static BulkheadMetricNames.Builder 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
public static BulkheadMetricNames 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.
-
-