Package org.apache.tomcat.util.threads
Interface ResizableExecutor
- All Superinterfaces:
- Executor
- All Known Implementing Classes:
- StandardThreadExecutor
- 
Method SummaryModifier 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- 
getPoolSizeint getPoolSize()Returns the current number of threads in the pool.- Returns:
- the number of threads
 
- 
getMaxThreadsint getMaxThreads()
- 
getActiveCountint getActiveCount()Returns the approximate number of threads that are actively executing tasks.- Returns:
- the number of threads
 
- 
resizePoolboolean resizePool(int corePoolSize, int maximumPoolSize) 
- 
resizeQueueboolean resizeQueue(int capacity) 
 
-