List of usage examples for org.springframework.data.redis.connection.jedis JedisConnectionFactory getPoolConfig
@Nullable
public GenericObjectPoolConfig getPoolConfig()
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); }