public class ThreadPoolBulkheadMetricNames
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ThreadPoolBulkheadMetricNames.Builder
Helps building custom instance of
ThreadPoolBulkheadMetricNames. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_BULKHEAD_QUEUE_CAPACITY_METRIC_NAME |
static java.lang.String |
DEFAULT_BULKHEAD_QUEUE_DEPTH_METRIC_NAME |
static java.lang.String |
DEFAULT_CORE_THREAD_POOL_SIZE_METRIC_NAME |
static java.lang.String |
DEFAULT_MAX_THREAD_POOL_SIZE_METRIC_NAME |
static java.lang.String |
DEFAULT_THREAD_POOL_SIZE_METRIC_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
ThreadPoolBulkheadMetricNames() |
| Modifier and Type | Method and Description |
|---|---|
static ThreadPoolBulkheadMetricNames.Builder |
custom()
Returns a builder for creating custom metric names.
|
java.lang.String |
getCoreThreadPoolSizeMetricName()
Returns the metric name for core thread pool size, defaults to "resilience4j.bulkhead.core.thread.pool.size".
|
java.lang.String |
getMaxThreadPoolSizeMetricName()
Returns the metric name for max thread pool size, defaults to "resilience4j.bulkhead.max.thread.pool.size".
|
java.lang.String |
getQueueCapacityMetricName()
Returns the metric name for queue capacity, defaults to "resilience4j.bulkhead.queue.capacity".
|
java.lang.String |
getQueueDepthMetricName()
Returns the metric name for queue depth, defaults to "resilience4j.bulkhead.queue.depth".
|
java.lang.String |
getThreadPoolSizeMetricName()
Returns the metric name for thread pool size, defaults to "resilience4j.bulkhead.thread.pool.size".
|
static ThreadPoolBulkheadMetricNames |
ofDefaults()
Returns default metric names.
|
public static final java.lang.String DEFAULT_BULKHEAD_QUEUE_DEPTH_METRIC_NAME
public static final java.lang.String DEFAULT_BULKHEAD_QUEUE_CAPACITY_METRIC_NAME
public static final java.lang.String DEFAULT_THREAD_POOL_SIZE_METRIC_NAME
public static final java.lang.String DEFAULT_MAX_THREAD_POOL_SIZE_METRIC_NAME
public static final java.lang.String DEFAULT_CORE_THREAD_POOL_SIZE_METRIC_NAME
public static ThreadPoolBulkheadMetricNames.Builder custom()
public static ThreadPoolBulkheadMetricNames ofDefaults()
ThreadPoolBulkheadMetricNames instance.public java.lang.String getQueueDepthMetricName()
public java.lang.String getThreadPoolSizeMetricName()
public java.lang.String getMaxThreadPoolSizeMetricName()
public java.lang.String getCoreThreadPoolSizeMetricName()
public java.lang.String getQueueCapacityMetricName()