org.apache.avalon.excalibur.pool
Class HardResourceLimitingPool

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.pool.HardResourceLimitingPool
All Implemented Interfaces:
Component, Disposable, Initializable, Loggable, Pool, Resizable, ThreadSafe
Direct Known Subclasses:
JdbcConnectionPool

public class HardResourceLimitingPool
extends SoftResourceLimitingPool
implements ThreadSafe, Initializable

This is a implementation of Pool that is thread safe.

Version:
CVS $Revision: 1.7 $ $Date: 2001/06/01 21:09:29 $
Author:
Berin Loritsch, Stefano Mazzocchi, Peter Donald

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
HardResourceLimitingPool(java.lang.Class clazz, int initial)
           
HardResourceLimitingPool(java.lang.Class clazz, int initial, int maximum)
           
HardResourceLimitingPool(ObjectFactory factory)
           
HardResourceLimitingPool(ObjectFactory factory, int initial)
           
HardResourceLimitingPool(ObjectFactory factory, int initial, int maximum)
           
HardResourceLimitingPool(ObjectFactory factory, PoolController controller)
           
HardResourceLimitingPool(ObjectFactory factory, PoolController controller, int max)
           
 
Method Summary
 void initialize()
          Initialialize the component.
protected  Poolable newPoolable()
          This is the method to override when you need to enforce creational policies.
 
Methods inherited from class org.apache.avalon.excalibur.pool.SoftResourceLimitingPool
grow, shrink
 
Methods inherited from class org.apache.avalon.excalibur.pool.DefaultPool
dispose, get, put
 
Methods inherited from class org.apache.avalon.excalibur.pool.AbstractPool
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
 

Constructor Detail

HardResourceLimitingPool

public HardResourceLimitingPool(ObjectFactory factory,
                                PoolController controller)
                         throws java.lang.Exception

HardResourceLimitingPool

public HardResourceLimitingPool(ObjectFactory factory,
                                PoolController controller,
                                int max)
                         throws java.lang.Exception

HardResourceLimitingPool

public HardResourceLimitingPool(ObjectFactory factory)
                         throws java.lang.Exception

HardResourceLimitingPool

public HardResourceLimitingPool(ObjectFactory factory,
                                int initial,
                                int maximum)
                         throws java.lang.Exception

HardResourceLimitingPool

public HardResourceLimitingPool(ObjectFactory factory,
                                int initial)
                         throws java.lang.Exception

HardResourceLimitingPool

public HardResourceLimitingPool(java.lang.Class clazz,
                                int initial,
                                int maximum)
                         throws java.lang.NoSuchMethodException,
                                java.lang.Exception

HardResourceLimitingPool

public HardResourceLimitingPool(java.lang.Class clazz,
                                int initial)
                         throws java.lang.NoSuchMethodException,
                                java.lang.Exception
Method Detail

initialize

public void initialize()
Description copied from interface: Initializable
Initialialize the component. Initialization includes allocating any resources required throughout the components lifecycle.
Specified by:
initialize in interface Initializable
Overrides:
initialize in class SoftResourceLimitingPool
Following copied from interface: org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception - if an error occurs

newPoolable

protected Poolable newPoolable()
                        throws java.lang.Exception
Description copied from class: AbstractPool
This is the method to override when you need to enforce creational policies.
Overrides:
newPoolable in class AbstractPool


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.