gresrun / jesque

An implementation of Resque in Java.
http://gresrun.github.io/jesque
Apache License 2.0
630 stars 131 forks source link

PoolUtils createJedisPool can't support database parameter #112

Closed zhoutaoo closed 8 years ago

zhoutaoo commented 8 years ago

new JedisPool(poolConfig, jesqueConfig.getHost(), jesqueConfig.getPort(), jesqueConfig.getTimeout(), jesqueConfig.getPassword(),jesqueConfig.getDatabase())

if (jesqueConfig.getMasterName() != null && !"".equals(jesqueConfig.getMasterName()) 
                && jesqueConfig.getSentinels() != null && jesqueConfig.getSentinels().size() > 0) {
            return new JedisSentinelPool(jesqueConfig.getMasterName(), jesqueConfig.getSentinels(), poolConfig,  jesqueConfig.getTimeout(), jesqueConfig.getPassword());
        } else {
            return new JedisPool(poolConfig, jesqueConfig.getHost(), jesqueConfig.getPort(), 
                    jesqueConfig.getTimeout(), jesqueConfig.getPassword());
        }
gresrun commented 8 years ago

Now passing the database to the pools in #114.