refactor redisscheduler #118

master
yihua.huang 2014-05-02 20:24:15 +08:00
parent 56f033ce8d
commit 186b90512e
1 changed files with 2 additions and 1 deletions

View File

@ -26,11 +26,12 @@ public class RedisScheduler extends DuplicateRemovedScheduler implements Monitor
private static final String ITEM_PREFIX = "item_";
public RedisScheduler(String host) {
pool = new JedisPool(new JedisPoolConfig(), host);
this(new JedisPool(new JedisPoolConfig(), host));
}
public RedisScheduler(JedisPool pool) {
this.pool = pool;
setDuplicateRemover(this);
}
@Override