* @param maxWait
*/
public RedisConnectionPool(RedisConnectionProvider<T> redisConnectionProvider, int maxActive, int maxIdle, long maxWait) {
this.redisConnectionProvider = redisConnectionProvider;
GenericObjectPoolConfig config = new GenericObjectPoolConfig();
config.setMaxIdle(maxIdle);
config.setMaxTotal(maxActive);
config.setMaxWaitMillis(maxWait);
config.setTestOnBorrow(true);
objectPool = new GenericObjectPool<T>(createFactory(redisConnectionProvider), config);
}