Package org.apache.tomcat.util.threads
Interface ResizableExecutor
- 
- All Superinterfaces:
- java.util.concurrent.Executor
 - All Known Implementing Classes:
- StandardThreadExecutor
 
 public interface ResizableExecutor extends java.util.concurrent.Executor
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetActiveCount()Returns the approximate number of threads that are actively executing tasks.intgetMaxThreads()intgetPoolSize()Returns the current number of threads in the pool.booleanresizePool(int corePoolSize, int maximumPoolSize)booleanresizeQueue(int capacity)
 
- 
- 
- 
Method Detail- 
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) 
 
- 
 
-