Package io.github.resilience4j.bulkhead
Interface ThreadPoolBulkhead.Metrics
- Enclosing interface:
- ThreadPoolBulkhead
public static interface ThreadPoolBulkhead.Metrics
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of actively executing tasks.intReturns the maximum number of available threads.intReturns the core number of threads.intReturns the maximum allowed number of threads.intReturns the queue capacity.intReturns the number of tasks in the queue.intReturns the remaining queue capacity.intReturns 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
-
getActiveThreadCount
int getActiveThreadCount()Returns the number of actively executing tasks.- Returns:
- the number of executing tasks
-
getAvailableThreadCount
int getAvailableThreadCount()Returns the maximum number of available threads. Equivalent togetMaximumThreadPoolSize() - getActiveThreadCount()- Returns:
- the number of executing tasks
-