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 AtomicBoolean |
started |
muleContext, objectFactory, pool, poolingProfilePHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
DefaultLifecycleEnabledObjectPool(ObjectFactory objectFactory,
PoolingProfile poolingProfile,
MuleContext muleContext) |
| 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 AtomicBoolean started
public DefaultLifecycleEnabledObjectPool(ObjectFactory objectFactory, PoolingProfile poolingProfile, MuleContext muleContext)
objectFactory - The object factory that should be used to create new
LifecycleAdapter instance for the poolpoolingProfile - The pooling progile ot be used to configure poolmuleContext - protected 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–2015 MuleSoft, Inc.. All rights reserved.