I'm experimenting with resilience4j and tweaking configurations to optimize performance under load. One of the features I'm taking advantage of is using a Thread Pool Bulkhead and executing functions asynchronously using said thread pool. Is there a way that I can monitor the thread pool state? I'm looking for something to the effect of:
logger.debug(threadPoolBulkhead.getNumActiveThreads());
logger.debug(threadPoolBulkhead.getNumQueuedThreads());
Is something like this possible?