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 Log |
logger
logger used by this class
|
protected AtomicBoolean |
started |
muleContext, objectFactory, pool, poolingProfile
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_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, setObjectFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
borrowObject, clear, close, getMaxActive, getNumActive, getObjectFactory, returnObject, setObjectFactory
initialise
dispose
protected static final 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()
CommonsPoolObjectPool
getPooledObjectFactory
in class CommonsPoolObjectPool
public void start() throws MuleException
start
in interface Startable
MuleException
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.