simplification of sharding

This commit is contained in:
Alex Tkachman
2010-09-16 15:41:04 +02:00
parent ea784de98a
commit 53efb8471f
9 changed files with 163 additions and 190 deletions

View File

@@ -32,7 +32,7 @@ public class JedisPool extends FixedResourcePool<Jedis> {
this.password = password;
}
public JedisPool(ShardInfo shardInfo) {
public JedisPool(JedisShardInfo shardInfo) {
this.host = shardInfo.getHost();
this.port = shardInfo.getPort();
this.timeout = shardInfo.getTimeout();
@@ -80,4 +80,4 @@ public class JedisPool extends FixedResourcePool<Jedis> {
return false;
}
}
}
}