Interface ThreadPoolBulkhead.Metrics

Enclosing interface:
ThreadPoolBulkhead

public static interface ThreadPoolBulkhead.Metrics
  • 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 to getMaximumThreadPoolSize() - getActiveThreadCount()
      Returns:
      the number of executing tasks