Class ThreadPoolBulkheadMetricNames.Builder
java.lang.Object
io.github.resilience4j.micrometer.tagged.ThreadPoolBulkheadMetricNames.Builder
- Enclosing class:
- ThreadPoolBulkheadMetricNames
public static class ThreadPoolBulkheadMetricNames.Builder
extends java.lang.Object
Helps building custom instance of
ThreadPoolBulkheadMetricNames.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
queueDepthMetricName
public ThreadPoolBulkheadMetricNames.Builder queueDepthMetricName(java.lang.String queueDepthMetricName)Overrides the default metric name "resilience4j.bulkhead.queue.depth" with a given one.- Parameters:
queueDepthMetricName- The queue depth metric name.- Returns:
- The builder.
-
threadPoolSizeMetricName
public ThreadPoolBulkheadMetricNames.Builder threadPoolSizeMetricName(java.lang.String threadPoolSizeMetricName)Overrides the default metric name "resilience4j.bulkhead.thread.pool.size" with a given one.- Parameters:
threadPoolSizeMetricName- The thread pool size metric name.- Returns:
- The builder.
-
maxThreadPoolSizeMetricName
public ThreadPoolBulkheadMetricNames.Builder maxThreadPoolSizeMetricName(java.lang.String maxThreadPoolSizeMetricName)Overrides the default metric name "resilience4j.bulkhead.max.thread.pool.size" with a given one.- Parameters:
maxThreadPoolSizeMetricName- The max thread pool size metric name.- Returns:
- The builder.
-
coreThreadPoolSizeMetricName
public ThreadPoolBulkheadMetricNames.Builder coreThreadPoolSizeMetricName(java.lang.String coreThreadPoolSizeMetricName)Overrides the default metric name "resilience4j.bulkhead.core.thread.pool.size" with a given one.- Parameters:
coreThreadPoolSizeMetricName- The core thread pool size metric name.- Returns:
- The builder.
-
queueCapacityMetricName
public ThreadPoolBulkheadMetricNames.Builder queueCapacityMetricName(java.lang.String queueCapacityMetricName)Overrides the default metric name "resilience4j.bulkhead.queue.capacity" with a given one.- Parameters:
queueCapacityMetricName- The queue capacity metric name.- Returns:
- The builder.
-
build
BuildsThreadPoolBulkheadMetricNamesinstance.- Returns:
- The built
ThreadPoolBulkheadMetricNamesinstance.
-