Package io.github.resilience4j.bulkhead
Interface ThreadPoolBulkhead.Metrics
- Enclosing interface:
- ThreadPoolBulkhead
public static interface ThreadPoolBulkhead.Metrics
-
Method Summary
Modifier and Type Method Description intgetCoreThreadPoolSize()Returns the core number of threads.intgetMaximumThreadPoolSize()Returns the maximum allowed number of threads.intgetQueueCapacity()Returns the queue capacity.intgetQueueDepth()Returns the number of tasks in the queue.intgetRemainingQueueCapacity()Returns the remaining queue capacity.intgetThreadPoolSize()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
-