refactor redisscheduler #118
parent
56f033ce8d
commit
186b90512e
|
@ -26,11 +26,12 @@ public class RedisScheduler extends DuplicateRemovedScheduler implements Monitor
|
||||||
private static final String ITEM_PREFIX = "item_";
|
private static final String ITEM_PREFIX = "item_";
|
||||||
|
|
||||||
public RedisScheduler(String host) {
|
public RedisScheduler(String host) {
|
||||||
pool = new JedisPool(new JedisPoolConfig(), host);
|
this(new JedisPool(new JedisPoolConfig(), host));
|
||||||
}
|
}
|
||||||
|
|
||||||
public RedisScheduler(JedisPool pool) {
|
public RedisScheduler(JedisPool pool) {
|
||||||
this.pool = pool;
|
this.pool = pool;
|
||||||
|
setDuplicateRemover(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue