Interface EagerExecutorService

  • All Superinterfaces:
    java.util.concurrent.Executor, java.util.concurrent.ExecutorService
    All Known Implementing Classes:
    ShenyuThreadPoolExecutor

    public interface EagerExecutorService
    extends java.util.concurrent.ExecutorService
    EagerExecutorService.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getActiveCount()
      Returns the approximate number of threads that are actively executing tasks.
      int getMaximumPoolSize()
      Returns the maximum allowed number of threads.
      int getPoolSize()
      Returns the current number of threads in the pool.
      • Methods inherited from interface java.util.concurrent.Executor

        execute
      • Methods inherited from interface java.util.concurrent.ExecutorService

        awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
    • Method Detail

      • getPoolSize

        int getPoolSize()
        Returns the current number of threads in the pool.
        Returns:
        the number of threads
      • getActiveCount

        int getActiveCount()
        Returns the approximate number of threads that are actively executing tasks.
        Returns:
        the number of threads
      • getMaximumPoolSize

        int getMaximumPoolSize()
        Returns the maximum allowed number of threads.
        Returns:
        the maximum allowed number of threads