Class ThreadPoolBulkheadMetricNames
java.lang.Object
io.github.resilience4j.micrometer.tagged.ThreadPoolBulkheadMetricNames
public class ThreadPoolBulkheadMetricNames
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classThreadPoolBulkheadMetricNames.BuilderHelps building custom instance ofThreadPoolBulkheadMetricNames. -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_BULKHEAD_QUEUE_CAPACITY_METRIC_NAMEstatic java.lang.StringDEFAULT_BULKHEAD_QUEUE_DEPTH_METRIC_NAMEstatic java.lang.StringDEFAULT_CORE_THREAD_POOL_SIZE_METRIC_NAMEstatic java.lang.StringDEFAULT_MAX_THREAD_POOL_SIZE_METRIC_NAMEstatic java.lang.StringDEFAULT_THREAD_POOL_SIZE_METRIC_NAME -
Constructor Summary
Constructors Modifier Constructor Description protectedThreadPoolBulkheadMetricNames() -
Method Summary
Modifier and Type Method Description static ThreadPoolBulkheadMetricNames.Buildercustom()Returns a builder for creating custom metric names.java.lang.StringgetCoreThreadPoolSizeMetricName()Returns the metric name for core thread pool size, defaults to "resilience4j.bulkhead.core.thread.pool.size".java.lang.StringgetMaxThreadPoolSizeMetricName()Returns the metric name for max thread pool size, defaults to "resilience4j.bulkhead.max.thread.pool.size".java.lang.StringgetQueueCapacityMetricName()Returns the metric name for queue capacity, defaults to "resilience4j.bulkhead.queue.capacity".java.lang.StringgetQueueDepthMetricName()Returns the metric name for queue depth, defaults to "resilience4j.bulkhead.queue.depth".java.lang.StringgetThreadPoolSizeMetricName()Returns the metric name for thread pool size, defaults to "resilience4j.bulkhead.thread.pool.size".static ThreadPoolBulkheadMetricNamesofDefaults()Returns default metric names.
-
Field Details
-
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 Details
-
ThreadPoolBulkheadMetricNames
protected ThreadPoolBulkheadMetricNames()
-
-
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
ThreadPoolBulkheadMetricNamesinstance.
-
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.
-