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 pluggableThreadPoolSizingStrategy
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
All Methods Instance Methods Abstract Methods 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.
-
-
-
Method Detail
-
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
-
-