com.liferay.portal.cache.memcached
Class MemcachedClientPoolableObjectFactory
java.lang.Object
com.liferay.portal.cache.memcached.MemcachedClientPoolableObjectFactory
- All Implemented Interfaces:
- org.apache.commons.pool.PoolableObjectFactory
public class MemcachedClientPoolableObjectFactory
- extends Object
- implements org.apache.commons.pool.PoolableObjectFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemcachedClientPoolableObjectFactory
public MemcachedClientPoolableObjectFactory()
activateObject
public void activateObject(Object obj)
throws Exception
- Specified by:
activateObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
destroyObject
public void destroyObject(Object obj)
- Specified by:
destroyObject
in interface org.apache.commons.pool.PoolableObjectFactory
makeObject
public Object makeObject()
throws Exception
- Specified by:
makeObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
passivateObject
public void passivateObject(Object obj)
throws Exception
- Specified by:
passivateObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
setAddresses
public void setAddresses(List<String> addresses)
setConnectionFactory
public void setConnectionFactory(net.spy.memcached.ConnectionFactory connectionFactory)
validateObject
public boolean validateObject(Object obj)
- Specified by:
validateObject
in interface org.apache.commons.pool.PoolableObjectFactory