java.util.concurrent.Executor, ThreadPoolExecutorSizedThreadPool, QueuedThreadPoolpublic static interface ThreadPool.SizedThreadPool extends ThreadPool
Specialized sub-interface of ThreadPool that allows to get/set the minimum and maximum number of threads of the pool.
ThreadPool.SizedThreadPool| Modifier and Type | Method | Description |
|---|---|---|
int |
getMaxThreads() |
|
int |
getMinThreads() |
|
default ThreadPoolBudget |
getThreadPoolBudget() |
|
void |
setMaxThreads(int threads) |
|
void |
setMinThreads(int threads) |
getIdleThreads, getThreads, isLowOnThreads, joinint getMinThreads()
int getMaxThreads()
void setMinThreads(int threads)
threads - the minimum number of threadsvoid setMaxThreads(int threads)
threads - the maximum number of threadsdefault ThreadPoolBudget getThreadPoolBudget()
Copyright © 1995–2017 Webtide. All rights reserved.