org.apache.avalon.excalibur.component
Class DefaultComponentPool

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--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:
Component, Disposable, Initializable, Loggable, Pool, Resizable, ThreadSafe

public class DefaultComponentPool
extends SoftResourceLimitingPool
implements 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.

Version:
CVS $Revision: 1.3 $ $Date: 2001/05/08 15:32:38 $
Author:
Berin Loritsch, Giacomo Pati

Fields inherited from class org.apache.avalon.excalibur.pool.DefaultPool
m_controller, m_disposed, m_max, m_min
 
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(ObjectFactory factory)
          Initialize the Pool with an ObjectFactory.
 
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
newPoolable, removePoolable, size
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, 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
 

Constructor Detail

DefaultComponentPool

public DefaultComponentPool(ObjectFactory factory)
                     throws java.lang.Exception
Initialize the Pool with an ObjectFactory.


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.