Interface ThreadPool.SizedThreadPool
- All Superinterfaces:
 Executor, ThreadPool
- All Known Implementing Classes:
 ExecutorThreadPool, MonitoredQueuedThreadPool, QueuedThreadPool
- Enclosing interface:
 ThreadPool
Specialized sub-interface of ThreadPool that allows to get/set the minimum and maximum number of threads of the pool.
- 
Nested Class Summary
Nested classes/interfaces inherited from interface ThreadPool
ThreadPool.SizedThreadPool - 
Method Summary
Modifier and TypeMethodDescriptionintintdefault ThreadPoolBudgetvoidsetMaxThreads(int threads) voidsetMinThreads(int threads) Methods inherited from interface ThreadPool
getIdleThreads, getThreads, isLowOnThreads, join 
- 
Method Details
- 
getMinThreads
int getMinThreads()- Returns:
 - the minimum number of threads
 
 - 
getMaxThreads
int getMaxThreads()- Returns:
 - the maximum number of threads
 
 - 
setMinThreads
void setMinThreads(int threads) - Parameters:
 threads- the minimum number of threads
 - 
setMaxThreads
void setMaxThreads(int threads) - Parameters:
 threads- the maximum number of threads
 - 
getThreadPoolBudget
- Returns:
 - a ThreadPoolBudget for this sized thread pool, or null of no ThreadPoolBudget can be returned
 
 
 -