Package com.tangosol.net
Interface ThreadPoolManager
public interface ThreadPoolManager
A ThreadPoolManager manages the thread pool information for a Coherence
service thread pool. The thread pool relies on a pluggable
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()
.
- Since:
- Coherence 12.1.2
- Author:
- lh 2011.12.21
-
Method Summary
Modifier and TypeMethodDescriptionint
Return the backlog of the thread pool.int
Return the idle thread count of the thread pool.int
Return the maximum size of the thread pool.int
Return the minimum size of the thread pool.int
Return the current size of the thread pool.long
Return the time interval for dynamically decreasing the size of the thread pool.long
Return the time interval for dynamically increasing the size of the thread pool.
-
Method Details
-
getMinPoolSize
int getMinPoolSize()Return the minimum size of the thread pool.- Returns:
- the minimum size of the thread pool
-
getMaxPoolSize
int getMaxPoolSize()Return the maximum size of the thread pool.- Returns:
- the maximum size of the thread pool
-
getPoolSize
int getPoolSize()Return the current size of the thread pool.- Returns:
- the current size of the thread pool
-
getBacklog
int getBacklog()Return the backlog of the thread pool.- Returns:
- the backlog of the thread pool
-
getIdleThreadCount
int getIdleThreadCount()Return the idle thread count of the thread pool.- Returns:
- the idle thread count of the thread pool
-
getThreadDecreaseInterval
long getThreadDecreaseInterval()Return the time interval for dynamically decreasing the size of the thread pool.- Returns:
- the time interval for dynamically decreasing the size of the thread pool
-
getThreadIncreaseInterval
long getThreadIncreaseInterval()Return the time interval for dynamically increasing the size of the thread pool.- Returns:
- the time interval for dynamically increasing the size of the thread pool
-