Class ThreadPoolBulkheadMetricNames.Builder
java.lang.Object
io.github.resilience4j.micrometer.tagged.ThreadPoolBulkheadMetricNames.Builder
- Enclosing class:
- ThreadPoolBulkheadMetricNames
Helps building custom instance of
ThreadPoolBulkheadMetricNames.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactiveThreadCountMetricName(String activeThreadCountMetricName) Overrides the default metric name "resilience4j.bulkhead.active.thread.count" with a given one.availableThreadCountMetricName(String availableThreadCountMetricName) Overrides the default metric name "resilience4j.bulkhead.available.thread.count" with a given one.build()BuildsThreadPoolBulkheadMetricNamesinstance.coreThreadPoolSizeMetricName(String coreThreadPoolSizeMetricName) Overrides the default metric name "resilience4j.bulkhead.core.thread.pool.size" with a given one.maxThreadPoolSizeMetricName(String maxThreadPoolSizeMetricName) Overrides the default metric name "resilience4j.bulkhead.max.thread.pool.size" with a given one.queueCapacityMetricName(String queueCapacityMetricName) Overrides the default metric name "resilience4j.bulkhead.queue.capacity" with a given one.queueDepthMetricName(String queueDepthMetricName) Overrides the default metric name "resilience4j.bulkhead.queue.depth" with a given one.threadPoolSizeMetricName(String threadPoolSizeMetricName) Overrides the default metric name "resilience4j.bulkhead.thread.pool.size" with a given one.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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(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(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(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(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.
-
activeThreadCountMetricName
public ThreadPoolBulkheadMetricNames.Builder activeThreadCountMetricName(String activeThreadCountMetricName) Overrides the default metric name "resilience4j.bulkhead.active.thread.count" with a given one.- Parameters:
activeThreadCountMetricName- The active thread count metric name.- Returns:
- The builder.
-
availableThreadCountMetricName
public ThreadPoolBulkheadMetricNames.Builder availableThreadCountMetricName(String availableThreadCountMetricName) Overrides the default metric name "resilience4j.bulkhead.available.thread.count" with a given one.- Parameters:
availableThreadCountMetricName- The active thread count metric name.- Returns:
- The builder.
-
build
BuildsThreadPoolBulkheadMetricNamesinstance.- Returns:
- The built
ThreadPoolBulkheadMetricNamesinstance.
-