Package org.eclipse.jetty.util.thread
Interface ThreadPool.SizedThreadPool
-
- All Superinterfaces:
java.util.concurrent.Executor
,ThreadPool
- All Known Implementing Classes:
ExecutorSizedThreadPool
,ExecutorThreadPool
,MonitoredQueuedThreadPool
,QueuedThreadPool
- Enclosing interface:
- ThreadPool
@Deprecated(since="2021-05-27") public static interface ThreadPool.SizedThreadPool extends ThreadPool
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.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 org.eclipse.jetty.util.thread.ThreadPool
ThreadPool.SizedThreadPool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description int
getMaxThreads()
Deprecated.int
getMinThreads()
Deprecated.default ThreadPoolBudget
getThreadPoolBudget()
Deprecated.void
setMaxThreads(int threads)
Deprecated.void
setMinThreads(int threads)
Deprecated.-
Methods inherited from interface org.eclipse.jetty.util.thread.ThreadPool
getIdleThreads, getThreads, isLowOnThreads, join
-
-
-
-
Method Detail
-
getMinThreads
int getMinThreads()
Deprecated.- Returns:
- the minimum number of threads
-
getMaxThreads
int getMaxThreads()
Deprecated.- Returns:
- the maximum number of threads
-
setMinThreads
void setMinThreads(int threads)
Deprecated.- Parameters:
threads
- the minimum number of threads
-
setMaxThreads
void setMaxThreads(int threads)
Deprecated.- Parameters:
threads
- the maximum number of threads
-
getThreadPoolBudget
default ThreadPoolBudget getThreadPoolBudget()
Deprecated.- Returns:
- a ThreadPoolBudget for this sized thread pool, or null of no ThreadPoolBudget can be returned
-
-