redis.clients.jedis
Class JedisPool
java.lang.Object
redis.clients.util.FixedResourcePool<Jedis>
redis.clients.jedis.JedisPool
public class JedisPool
- extends FixedResourcePool<Jedis>
| Methods inherited from class redis.clients.util.FixedResourcePool |
checkInit, destroy, getDefaultPoolWait, getDestructionWait, getName, getRepairThreadsNumber, getResource, getResource, getResourcesNumber, getTimeBetweenValidation, init, returnBrokenResource, returnResource, setDefaultPoolWait, setDestructionWait, setName, setRepairThreadsNumber, setResourcesNumber, setTimeBetweenValidation, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JedisPool
public JedisPool(java.lang.String host)
JedisPool
public JedisPool(java.lang.String host,
int port)
JedisPool
public JedisPool(java.lang.String host,
int port,
int timeout)
JedisPool
public JedisPool(java.lang.String host,
int port,
int timeout,
java.lang.String password)
JedisPool
public JedisPool(JedisShardInfo shardInfo)
createResource
protected Jedis createResource()
- Description copied from class:
FixedResourcePool
- Create a resource for the pool. This method is always called from the
REPAIR threads. If it's impossible to create the resource, this method
should wait or hold until resource creation becomes possible.
- Specified by:
createResource in class FixedResourcePool<Jedis>
destroyResource
protected void destroyResource(Jedis jedis)
- Description copied from class:
FixedResourcePool
- Destroy a resource.
- Specified by:
destroyResource in class FixedResourcePool<Jedis>
isResourceValid
protected boolean isResourceValid(Jedis jedis)
- Description copied from class:
FixedResourcePool
- Check if the resource is still valid.
- Specified by:
isResourceValid in class FixedResourcePool<Jedis>
- Returns:
Copyright © 2010. All Rights Reserved.