public class DefaultLifecycleEnabledObjectPool extends CommonsPoolObjectPool implements LifecyleEnabledObjectPool
LifecycleAdapter
instances for implementations of JavaComponent that require
LifecycleAdapter pooling such as PooledJavaComponent.PooledJavaComponent| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger
logger used by this class
|
protected edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean |
started |
objectFactory, pool, poolingProfilePHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
DefaultLifecycleEnabledObjectPool(ObjectFactory objectFactory,
PoolingProfile poolingProfile) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.pool.PoolableObjectFactory |
getPooledObjectFactory()
Template method to be overridden by implementations that do more than just
invoke objectFactory
|
void |
start() |
void |
stop() |
applyInitialisationPolicy, borrowObject, clear, close, dispose, getMaxActive, getNumActive, getObjectFactory, initialise, returnObject, setObjectFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitborrowObject, clear, close, getMaxActive, getNumActive, getObjectFactory, returnObject, setObjectFactoryinitialisedisposeprotected static final org.apache.commons.logging.Log logger
protected edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean started
public DefaultLifecycleEnabledObjectPool(ObjectFactory objectFactory, PoolingProfile poolingProfile)
objectFactory - The object factory that should be used to create new
LifecycleAdapter instance for the poolpoolingProfile - The pooling progile ot be used to configure poolprotected org.apache.commons.pool.PoolableObjectFactory getPooledObjectFactory()
CommonsPoolObjectPoolgetPooledObjectFactory in class CommonsPoolObjectPoolpublic void start()
throws MuleException
start in interface StartableMuleExceptionpublic void stop()
throws MuleException
stop in interface StoppableMuleExceptionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.