redis.clients.util
Class Pool<T>
java.lang.Object
redis.clients.util.Pool<T>
- Direct Known Subclasses:
- JedisPool, ShardedJedisPool
public abstract class Pool<T>
- extends Object
Constructor Summary |
Pool(org.apache.commons.pool.impl.GenericObjectPool.Config poolConfig,
org.apache.commons.pool.PoolableObjectFactory factory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Pool
public Pool(org.apache.commons.pool.impl.GenericObjectPool.Config poolConfig,
org.apache.commons.pool.PoolableObjectFactory factory)
getResource
public T getResource()
returnResourceObject
public void returnResourceObject(Object resource)
returnBrokenResource
public void returnBrokenResource(T resource)
returnResource
public void returnResource(T resource)
returnBrokenResourceObject
protected void returnBrokenResourceObject(Object resource)
destroy
public void destroy()
Copyright © 2012. All Rights Reserved.