Package io.github.resilience4j.bulkhead
Interface ThreadPoolBulkhead.Metrics
- Enclosing interface:
- ThreadPoolBulkhead
public static interface ThreadPoolBulkhead.Metrics
-
Method Summary
Modifier and Type Method Description int
getCoreThreadPoolSize()
Returns the core number of threads.int
getMaximumThreadPoolSize()
Returns the maximum allowed number of threads.int
getQueueCapacity()
Returns the queue capacity.int
getQueueDepth()
Returns the number of tasks in the queue.int
getRemainingQueueCapacity()
Returns the remaining queue capacity.int
getThreadPoolSize()
Returns the current number of threads in the pool.
-
Method Details
-
getCoreThreadPoolSize
int getCoreThreadPoolSize()Returns the core number of threads.- Returns:
- the core number of threads
-
getThreadPoolSize
int getThreadPoolSize()Returns the current number of threads in the pool.- Returns:
- the current number of threads
-
getMaximumThreadPoolSize
int getMaximumThreadPoolSize()Returns the maximum allowed number of threads.- Returns:
- the maximum allowed number of threads
-
getQueueDepth
int getQueueDepth()Returns the number of tasks in the queue.- Returns:
- the number of tasks in the queue
-
getRemainingQueueCapacity
int getRemainingQueueCapacity()Returns the remaining queue capacity.- Returns:
- the remaining queue capacity
-
getQueueCapacity
int getQueueCapacity()Returns the queue capacity.- Returns:
- the queue capacity
-