org.apache.avalon.excalibur.component
Class DefaultComponentPool
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.excalibur.pool.AbstractPool
org.apache.avalon.excalibur.pool.DefaultPool
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool
org.apache.avalon.excalibur.component.DefaultComponentPool
- All Implemented Interfaces:
- org.apache.avalon.excalibur.pool.Pool, org.apache.avalon.excalibur.pool.Resizable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.thread.ThreadSafe
Deprecated. DefaultComponentPool is no longer used by the PoolableComponentHandler.
public class DefaultComponentPool
- extends org.apache.avalon.excalibur.pool.SoftResourceLimitingPool
- implements org.apache.avalon.framework.activity.Initializable
This is the implementation of Pool
for Avalon
Components that is thread safe. For Component Management, we need
soft resource limiting due to the possibility of spikes in demand.
This pool will destroy all unnecessary Components when they are
no longer needed.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:14 $
- Author:
- Avalon Development Team
Fields inherited from class org.apache.avalon.excalibur.pool.DefaultPool |
m_controller, m_disposed, m_max, m_min, m_quickFail |
Fields inherited from class org.apache.avalon.excalibur.pool.AbstractPool |
DEFAULT_POOL_SIZE, m_active, m_factory, m_initialized, m_mutex, m_ready |
Constructor Summary |
DefaultComponentPool(org.apache.avalon.excalibur.pool.ObjectFactory factory)
Deprecated. Initialize the Pool with an
ObjectFactory . |
DefaultComponentPool(org.apache.avalon.excalibur.pool.ObjectFactory factory,
org.apache.avalon.excalibur.pool.PoolController controller,
int minimumPoolSize,
int maximumPoolSIze)
Deprecated. Initialized the Pool with an alternative management
infrastructure. |
Methods inherited from class org.apache.avalon.excalibur.pool.SoftResourceLimitingPool |
grow, initialize, shrink |
Methods inherited from class org.apache.avalon.excalibur.pool.DefaultPool |
dispose, get, put |
Methods inherited from class org.apache.avalon.excalibur.pool.AbstractPool |
internalGrow, internalShrink, lock, newPoolable, removePoolable, size, unlock |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.avalon.framework.activity.Initializable |
initialize |
DefaultComponentPool
public DefaultComponentPool(org.apache.avalon.excalibur.pool.ObjectFactory factory)
throws java.lang.Exception
- Deprecated.
- Initialize the
Pool
with an
ObjectFactory
.
- Throws:
java.lang.Exception
DefaultComponentPool
public DefaultComponentPool(org.apache.avalon.excalibur.pool.ObjectFactory factory,
org.apache.avalon.excalibur.pool.PoolController controller,
int minimumPoolSize,
int maximumPoolSIze)
throws java.lang.Exception
- Deprecated.
- Initialized the
Pool
with an alternative management
infrastructure.
- Throws:
java.lang.Exception
Copyright © 1997-2009 Apache Software Foundation. All Rights Reserved.