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)
           
 void returnResource(T 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()
              throws Exception
Throws:
Exception

returnResource

public void returnResource(T resource)
                    throws Exception
Throws:
Exception

returnBrokenResource

public void returnBrokenResource(T resource)
                          throws Exception
Throws:
Exception

destroy

public void destroy()
             throws Exception
Throws:
Exception


Copyright © 2010. All Rights Reserved.