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 java.lang.Object
- implements org.apache.commons.pool.PoolableObjectFactory
View Source
- Author:
- Michael C. Han
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(java.lang.Object obj)
throws java.lang.Exception
- Specified by:
activateObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
java.lang.Exception
destroyObject
public void destroyObject(java.lang.Object obj)
- Specified by:
destroyObject
in interface org.apache.commons.pool.PoolableObjectFactory
makeObject
public java.lang.Object makeObject()
throws java.lang.Exception
- Specified by:
makeObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
java.lang.Exception
passivateObject
public void passivateObject(java.lang.Object obj)
throws java.lang.Exception
- Specified by:
passivateObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
java.lang.Exception
setAddresses
public void setAddresses(java.util.List<java.lang.String> addresses)
setConnectionFactory
public void setConnectionFactory(net.spy.memcached.ConnectionFactory connectionFactory)
validateObject
public boolean validateObject(java.lang.Object obj)
- Specified by:
validateObject
in interface org.apache.commons.pool.PoolableObjectFactory