public interface ThreadPoolManager
ThreadPoolSizingStrategy
to analyze the current thread usage
and adjust its size accordingly.
The ThreadPoolManager provides a consistent and stable view of DaemonPool
state for the duration of the call to ThreadPoolSizingStrategy.adjustPoolSize()
.
Modifier and Type | Method | Description |
---|---|---|
int |
getBacklog() |
Return the backlog of the thread pool.
|
int |
getIdleThreadCount() |
Return the idle thread count of the thread pool.
|
int |
getMaxPoolSize() |
Return the maximum size of the thread pool.
|
int |
getMinPoolSize() |
Return the minimum size of the thread pool.
|
int |
getPoolSize() |
Return the current size of the thread pool.
|
long |
getThreadDecreaseInterval() |
Return the time interval for dynamically decreasing the size of the thread pool.
|
long |
getThreadIncreaseInterval() |
Return the time interval for dynamically increasing the size of the thread pool.
|
int getMinPoolSize()
int getMaxPoolSize()
int getPoolSize()
int getBacklog()
int getIdleThreadCount()
long getThreadDecreaseInterval()
long getThreadIncreaseInterval()