redis.clients.jedis
Class JedisPoolConfig
java.lang.Object
org.apache.commons.pool.impl.GenericObjectPool.Config
redis.clients.jedis.JedisPoolConfig
public class JedisPoolConfig
- extends org.apache.commons.pool.impl.GenericObjectPool.Config
Subclass of org.apache.commons.pool.impl.GenericObjectPool.Config that
includes getters/setters so it can be more easily configured by Spring and
other IoC frameworks.
Spring example:
For information on parameters refer to:
http://commons.apache.org/pool/apidocs/org/apache/commons/pool/impl/
GenericObjectPool.html
Fields inherited from class org.apache.commons.pool.impl.GenericObjectPool.Config |
lifo, maxActive, maxIdle, maxWait, minEvictableIdleTimeMillis, minIdle, numTestsPerEvictionRun, softMinEvictableIdleTimeMillis, testOnBorrow, testOnReturn, testWhileIdle, timeBetweenEvictionRunsMillis, whenExhaustedAction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JedisPoolConfig
public JedisPoolConfig()
getMaxIdle
public int getMaxIdle()
setMaxIdle
public void setMaxIdle(int maxIdle)
getMinIdle
public int getMinIdle()
setMinIdle
public void setMinIdle(int minIdle)
getMaxActive
public int getMaxActive()
setMaxActive
public void setMaxActive(int maxActive)
getMaxWait
public long getMaxWait()
setMaxWait
public void setMaxWait(long maxWait)
getWhenExhaustedAction
public byte getWhenExhaustedAction()
setWhenExhaustedAction
public void setWhenExhaustedAction(byte whenExhaustedAction)
isTestOnBorrow
public boolean isTestOnBorrow()
setTestOnBorrow
public void setTestOnBorrow(boolean testOnBorrow)
isTestOnReturn
public boolean isTestOnReturn()
setTestOnReturn
public void setTestOnReturn(boolean testOnReturn)
isTestWhileIdle
public boolean isTestWhileIdle()
setTestWhileIdle
public void setTestWhileIdle(boolean testWhileIdle)
getTimeBetweenEvictionRunsMillis
public long getTimeBetweenEvictionRunsMillis()
setTimeBetweenEvictionRunsMillis
public void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
getNumTestsPerEvictionRun
public int getNumTestsPerEvictionRun()
setNumTestsPerEvictionRun
public void setNumTestsPerEvictionRun(int numTestsPerEvictionRun)
getMinEvictableIdleTimeMillis
public long getMinEvictableIdleTimeMillis()
setMinEvictableIdleTimeMillis
public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
getSoftMinEvictableIdleTimeMillis
public long getSoftMinEvictableIdleTimeMillis()
setSoftMinEvictableIdleTimeMillis
public void setSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis)
Copyright © 2012. All Rights Reserved.