com.liferay.portal.cache.memcached
Class PooledMemcachedClientFactory
java.lang.Object
com.liferay.portal.cache.memcached.PooledMemcachedClientFactory
- All Implemented Interfaces:
- MemcachedClientFactory
public class PooledMemcachedClientFactory
- extends Object
- implements MemcachedClientFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PooledMemcachedClientFactory
public PooledMemcachedClientFactory()
getMemcachedClient
public net.spy.memcached.MemcachedClientIF getMemcachedClient()
throws Exception
- Specified by:
getMemcachedClient in interface MemcachedClientFactory
- Throws:
Exception
clear
public void clear()
throws Exception
- Specified by:
clear in interface MemcachedClientFactory
- Throws:
Exception
close
public void close()
throws Exception
- Specified by:
close in interface MemcachedClientFactory
- Throws:
Exception
destroy
public void destroy()
getNumActive
public int getNumActive()
- Specified by:
getNumActive in interface MemcachedClientFactory
getNumIdle
public int getNumIdle()
- Specified by:
getNumIdle in interface MemcachedClientFactory
invalidateMemcachedClient
public void invalidateMemcachedClient(net.spy.memcached.MemcachedClientIF memcachedClient)
throws Exception
- Specified by:
invalidateMemcachedClient in interface MemcachedClientFactory
- Throws:
Exception
returnMemcachedObject
public void returnMemcachedObject(net.spy.memcached.MemcachedClientIF memcachedClient)
throws Exception
- Specified by:
returnMemcachedObject in interface MemcachedClientFactory
- Throws:
Exception
setMemcachedClientPool
public void setMemcachedClientPool(org.apache.commons.pool.ObjectPool memcachedClientPool)