Package redis.clients.jedis

Examples of redis.clients.jedis.JedisPoolConfig


        }

        log.debug("Pool from JNDI: " + pool);

        if (pool == null) {
            JedisPoolConfig config = new JedisPoolConfig();
            pool = new JedisPool(config, redisHostname, redisPort, redisTimeout, redisPassword);
        }

        if (!disableListeners) {
            Executors.newSingleThreadExecutor().execute(eventListenerThread);
View Full Code Here


  final static int CONCURRENT_CLIENTS = 100;
  final static int INCREMENTATION_TIMES = 1000;
 
  @Test
  public void a_lot_of_concurrent_incrementing() throws Exception {
    JedisPoolConfig config = new JedisPoolConfig();
    config.setMaxActive(CONCURRENT_CLIENTS);
    JedisPool pool = new JedisPool(config, getRedisHostname());
   
    CountDownLatch startLatch = new CountDownLatch(1);
    CountDownLatch completionCounter = new CountDownLatch(CONCURRENT_CLIENTS);
   
View Full Code Here

  }
 
  public void init()
  {
    if (config == null) {
      config = new JedisPoolConfig();
      config.lifo = true;
      config.timeBetweenEvictionRunsMillis = -1;
      config.maxActive = connections;
      config.maxIdle = connections;
      config.testOnBorrow = true;
View Full Code Here

TOP

Related Classes of redis.clients.jedis.JedisPoolConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.