Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.net.proxy
Class DefaultProxyServiceThreadPoolSizing.PoolContext

java.lang.Object
  extended by com.tangosol.net.proxy.DefaultProxyServiceThreadPoolSizing.PoolContext

Enclosing class:
DefaultProxyServiceThreadPoolSizing

protected class DefaultProxyServiceThreadPoolSizing.PoolContext
extends java.lang.Object

PoolContext holds the working view of the usage of the thread pool throughout the analysis and is used to adjust the pool size during analysis.


Field Summary
protected  int m_cRequests
          The total request count during this adjustment period.
protected  long m_cThreadDecreaseMillis
          The pool size decrease time interval in milliseconds.
protected  long m_cThreadIncreaseMillis
          The pool size increase time interval in milliseconds.
protected  int m_cTotalBacklog
          The total backlog during this adjustment period.
protected  int m_cTotalIdleThreads
          The total idle thread count during this adjustment period.
protected  long m_ltdLastAdjustmentTime
          The last adjustment time in milliseconds.

 

Constructor Summary
DefaultProxyServiceThreadPoolSizing.PoolContext()
          Default constructor.

 

Method Summary
 long getLastAdjustmentTime()
          Return the last adjustment time.
 int getMaxThreadCount()
          Return the maximum thread count for this thread pool.
 int getMinThreadCount()
          Return the the minimum thread count for this thread pool.
 int getRequestCount()
          Return the total request count in the current adjustment interval.
 long getSizeDecreaseTimeInterval()
          Return the pool size decrease time interval.
 long getSizeIncreaseTimeInterval()
          Return the pool size increase time interval.
 int getThreadCount()
          Return the current thread pool size.
 int getTotalBacklog()
          Return the total backlog during this adjustment period.
 int getTotalIdleThreads()
          Return the total idle thread count during this adjustment period.
protected  void initialize()
          Initialize the PoolContext using information from ThreadPoolManager.
protected  void reset()
          Reset the PoolContext.
 void setLastAdjustmentTime(long ltdTimeMillis)
          Set the the last time the pool size is or attempted to be updated.
 void setSizeDecreaseTimeInterval(long cMillis)
          Set the the time interval for dynamically decreasing the pool size.
 void setSizeIncreaseTimeInterval(long cMillis)
          Set the time interval for dynamically increasing the pool size, in milliseconds.

 

Field Detail

m_cRequests

protected int m_cRequests
The total request count during this adjustment period.

m_cTotalBacklog

protected int m_cTotalBacklog
The total backlog during this adjustment period.

m_cTotalIdleThreads

protected int m_cTotalIdleThreads
The total idle thread count during this adjustment period.

m_ltdLastAdjustmentTime

protected long m_ltdLastAdjustmentTime
The last adjustment time in milliseconds.

m_cThreadIncreaseMillis

protected long m_cThreadIncreaseMillis
The pool size increase time interval in milliseconds.

m_cThreadDecreaseMillis

protected long m_cThreadDecreaseMillis
The pool size decrease time interval in milliseconds.

Constructor Detail

DefaultProxyServiceThreadPoolSizing.PoolContext

public DefaultProxyServiceThreadPoolSizing.PoolContext()
Default constructor.

Method Detail

initialize

protected void initialize()
Initialize the PoolContext using information from ThreadPoolManager.

reset

protected void reset()
Reset the PoolContext.

getMaxThreadCount

public int getMaxThreadCount()
Return the maximum thread count for this thread pool.
Returns:
the maximum thread count

getMinThreadCount

public int getMinThreadCount()
Return the the minimum thread count for this thread pool.
Returns:
the minimum thread count

getRequestCount

public int getRequestCount()
Return the total request count in the current adjustment interval.
Returns:
the total request count

getLastAdjustmentTime

public long getLastAdjustmentTime()
Return the last adjustment time.
Returns:
the last adjustment time

setLastAdjustmentTime

public void setLastAdjustmentTime(long ltdTimeMillis)
Set the the last time the pool size is or attempted to be updated.
Parameters:
ltdTimeMillis - the last time the pool size is updated or attempted to be updated

getSizeDecreaseTimeInterval

public long getSizeDecreaseTimeInterval()
Return the pool size decrease time interval.
Returns:
the pool size decrease time interval

setSizeDecreaseTimeInterval

public void setSizeDecreaseTimeInterval(long cMillis)
Set the the time interval for dynamically decreasing the pool size.
Parameters:
cMillis - the time interval for dynamically decreasing the pool size

getSizeIncreaseTimeInterval

public long getSizeIncreaseTimeInterval()
Return the pool size increase time interval.
Returns:
the pool size increase time interval

setSizeIncreaseTimeInterval

public void setSizeIncreaseTimeInterval(long cMillis)
Set the time interval for dynamically increasing the pool size, in milliseconds.
Parameters:
cMillis - the time interval for dynamically increasing the pool size

getThreadCount

public int getThreadCount()
Return the current thread pool size.
Returns:
the current thread pool size

getTotalBacklog

public int getTotalBacklog()
Return the total backlog during this adjustment period.
Returns:
the total backlog

getTotalIdleThreads

public int getTotalIdleThreads()
Return the total idle thread count during this adjustment period.
Returns:
the total idle thread count

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.