Package org.apache.tomcat.util.threads
Interface ResizableExecutor
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the approximate number of threads that are actively executing tasks.intintReturns the current number of threads in the pool.booleanresizePool(int corePoolSize, int maximumPoolSize) booleanresizeQueue(int capacity)
-
Method Details
-
getPoolSize
int getPoolSize()Returns the current number of threads in the pool.- Returns:
- the number of threads
-
getMaxThreads
int getMaxThreads() -
getActiveCount
int getActiveCount()Returns the approximate number of threads that are actively executing tasks.- Returns:
- the number of threads
-
resizePool
boolean resizePool(int corePoolSize, int maximumPoolSize) -
resizeQueue
boolean resizeQueue(int capacity)
-