Class BulkheadMetricNames


  • public class BulkheadMetricNames
    extends java.lang.Object
    Defines possible configuration for 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
    • Constructor Detail

      • BulkheadMetricNames

        protected BulkheadMetricNames()
    • 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.
      • 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.