Interface ExecutorStats

All Known Implementing Classes:
ExecutorStatsImpl

@Internal @Immutable public interface ExecutorStats
Class that exposes statistics of a ThreadPoolExecutor
Since:
v4.0
  • Method Details

    • getActiveCount

      int getActiveCount()
      How many threads are currently executing
      Returns:
    • getPoolSize

      int getPoolSize()
      THe maximmum number of threads
      Returns:
    • getEventsQueue

      @NotNull @NotNull List<Runnable> getEventsQueue()
      LIst of Runnable that current waiting to be run
      Returns:
    • getThreadToRunnableMappings

      @NotNull @NotNull Map<String,Pair<Runnable,Date>> getThreadToRunnableMappings()
      A mapping of a ThreadName to a pair of Runnable and the date the runnable started running.
      Returns: