redis.clients.util
Class Pool<T>

java.lang.Object
  extended by 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)
           
 
Method Summary
 void destroy()
           
 T getResource()
           
 void returnBrokenResource(T resource)
           
protected  void returnBrokenResourceObject(Object resource)
           
 void returnResource(T resource)
           
 void returnResourceObject(Object resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pool

public Pool(org.apache.commons.pool.impl.GenericObjectPool.Config poolConfig,
            org.apache.commons.pool.PoolableObjectFactory factory)
Method Detail

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.