org.mule.util.pool
Class DefaultLifecycleEnabledObjectPool
java.lang.Object
org.mule.util.pool.CommonsPoolObjectPool
org.mule.util.pool.DefaultLifecycleEnabledObjectPool
- All Implemented Interfaces:
- Disposable, Initialisable, Startable, Stoppable, LifecyleEnabledObjectPool, ObjectPool
public class DefaultLifecycleEnabledObjectPool
- extends CommonsPoolObjectPool
- implements LifecyleEnabledObjectPool
A LifecyleEnabledObjectPool implementation for pooling LifecycleAdapter
instances for implementations of JavaComponent
that require
LifecycleAdapter
pooling such as PooledJavaComponent
.
- See Also:
PooledJavaComponent
Methods inherited from class org.mule.util.pool.CommonsPoolObjectPool |
applyInitialisationPolicy, borrowObject, clear, close, dispose, getMaxActive, getNumActive, getObjectFactory, initialise, returnObject, setObjectFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
- logger used by this class
started
protected AtomicBoolean started
DefaultLifecycleEnabledObjectPool
public DefaultLifecycleEnabledObjectPool(ObjectFactory objectFactory,
PoolingProfile poolingProfile,
MuleContext muleContext)
- Parameters:
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
-
getPooledObjectFactory
protected PoolableObjectFactory getPooledObjectFactory()
- Description copied from class:
CommonsPoolObjectPool
- Template method to be overridden by implementations that do more than just
invoke objectFactory
- Overrides:
getPooledObjectFactory
in class CommonsPoolObjectPool
start
public void start()
throws MuleException
- Specified by:
start
in interface Startable
- Throws:
MuleException
stop
public void stop()
throws MuleException
- Specified by:
stop
in interface Stoppable
- Throws:
MuleException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.