redis.clients.jedis
Class JedisPoolConfig

java.lang.Object
  extended by org.apache.commons.pool.impl.GenericObjectPool.Config
      extended by 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


Field Summary
 
Fields inherited from class org.apache.commons.pool.impl.GenericObjectPool.Config
lifo, maxActive, maxIdle, maxWait, minEvictableIdleTimeMillis, minIdle, numTestsPerEvictionRun, softMinEvictableIdleTimeMillis, testOnBorrow, testOnReturn, testWhileIdle, timeBetweenEvictionRunsMillis, whenExhaustedAction
 
Constructor Summary
JedisPoolConfig()
           
 
Method Summary
 int getMaxActive()
           
 int getMaxIdle()
           
 long getMaxWait()
           
 long getMinEvictableIdleTimeMillis()
           
 int getMinIdle()
           
 int getNumTestsPerEvictionRun()
           
 long getSoftMinEvictableIdleTimeMillis()
           
 long getTimeBetweenEvictionRunsMillis()
           
 byte getWhenExhaustedAction()
           
 boolean isTestOnBorrow()
           
 boolean isTestOnReturn()
           
 boolean isTestWhileIdle()
           
 void setMaxActive(int maxActive)
           
 void setMaxIdle(int maxIdle)
           
 void setMaxWait(long maxWait)
           
 void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
           
 void setMinIdle(int minIdle)
           
 void setNumTestsPerEvictionRun(int numTestsPerEvictionRun)
           
 void setSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis)
           
 void setTestOnBorrow(boolean testOnBorrow)
           
 void setTestOnReturn(boolean testOnReturn)
           
 void setTestWhileIdle(boolean testWhileIdle)
           
 void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
           
 void setWhenExhaustedAction(byte whenExhaustedAction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JedisPoolConfig

public JedisPoolConfig()
Method Detail

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.