Class ThreadPoolBulkheadMetricNames


  • public class ThreadPoolBulkheadMetricNames
    extends java.lang.Object
    • Field Detail

      • DEFAULT_BULKHEAD_QUEUE_DEPTH_METRIC_NAME

        public static final java.lang.String DEFAULT_BULKHEAD_QUEUE_DEPTH_METRIC_NAME
        See Also:
        Constant Field Values
      • DEFAULT_BULKHEAD_QUEUE_CAPACITY_METRIC_NAME

        public static final java.lang.String DEFAULT_BULKHEAD_QUEUE_CAPACITY_METRIC_NAME
        See Also:
        Constant Field Values
      • DEFAULT_THREAD_POOL_SIZE_METRIC_NAME

        public static final java.lang.String DEFAULT_THREAD_POOL_SIZE_METRIC_NAME
        See Also:
        Constant Field Values
      • DEFAULT_MAX_THREAD_POOL_SIZE_METRIC_NAME

        public static final java.lang.String DEFAULT_MAX_THREAD_POOL_SIZE_METRIC_NAME
        See Also:
        Constant Field Values
      • DEFAULT_CORE_THREAD_POOL_SIZE_METRIC_NAME

        public static final java.lang.String DEFAULT_CORE_THREAD_POOL_SIZE_METRIC_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • ThreadPoolBulkheadMetricNames

        protected ThreadPoolBulkheadMetricNames()
    • Method Detail

      • custom

        public static ThreadPoolBulkheadMetricNames.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.
      • getQueueDepthMetricName

        public java.lang.String getQueueDepthMetricName()
        Returns the metric name for queue depth, defaults to "resilience4j.bulkhead.queue.depth".
        Returns:
        The queue depth metric name.
      • getThreadPoolSizeMetricName

        public java.lang.String getThreadPoolSizeMetricName()
        Returns the metric name for thread pool size, defaults to "resilience4j.bulkhead.thread.pool.size".
        Returns:
        The thread pool size metric name.
      • getMaxThreadPoolSizeMetricName

        public java.lang.String getMaxThreadPoolSizeMetricName()
        Returns the metric name for max thread pool size, defaults to "resilience4j.bulkhead.max.thread.pool.size".
        Returns:
        The max thread pool size metric name.
      • getCoreThreadPoolSizeMetricName

        public java.lang.String getCoreThreadPoolSizeMetricName()
        Returns the metric name for core thread pool size, defaults to "resilience4j.bulkhead.core.thread.pool.size".
        Returns:
        The core thread pool size metric name.
      • getQueueCapacityMetricName

        public java.lang.String getQueueCapacityMetricName()
        Returns the metric name for queue capacity, defaults to "resilience4j.bulkhead.queue.capacity".
        Returns:
        The queue capacity metric name.