Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


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:
@since Coherence 12.1.2
Author:
lh 2011.12.21

Method Summary
 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

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.