Interface EagerExecutorService
-
- All Superinterfaces:
java.util.concurrent.Executor,java.util.concurrent.ExecutorService
- All Known Implementing Classes:
ShenyuThreadPoolExecutor
public interface EagerExecutorService extends java.util.concurrent.ExecutorServiceEagerExecutorService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetActiveCount()Returns the approximate number of threads that are actively executing tasks.intgetMaximumPoolSize()Returns the maximum allowed number of threads.intgetPoolSize()Returns the current number of threads in the pool.
-
-
-
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
-
-