Example usage for org.springframework.data.redis.connection.jedis JedisConnectionFactory getPoolConfig

List of usage examples for org.springframework.data.redis.connection.jedis JedisConnectionFactory getPoolConfig

Introduction

In this page you can find the example usage for org.springframework.data.redis.connection.jedis JedisConnectionFactory getPoolConfig.

Prototype

@Nullable
public GenericObjectPoolConfig getPoolConfig() 

Source Link

Document

Returns the poolConfig.

Usage

From source file:org.cloudfoundry.test.ServiceController.java

@RequestMapping(value = "/redis/max-wait", method = RequestMethod.GET)
public ResponseEntity<String> getRedisPoolInitialSize() {
    if (serviceHolder.getRedisConnectionFactory() == null) {
        return new ResponseEntity<String>(HttpStatus.NOT_FOUND);
    }/* w w w.  ja  va 2 s  .c  o  m*/
    // Jedis is the only client we currently support
    JedisConnectionFactory jedisConnectionFactory = (JedisConnectionFactory) serviceHolder
            .getRedisConnectionFactory();
    return new ResponseEntity<String>("" + jedisConnectionFactory.getPoolConfig().getMaxWait(), HttpStatus.OK);
}