mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-24 00:29:05 +00:00
ref[provider]: refactor consistent hash load balancing
This commit is contained in:
@@ -53,6 +53,10 @@ public class HashSetLong extends AbstractSet<Long> {
|
||||
return map.containsKey(o);
|
||||
}
|
||||
|
||||
public boolean contains(long key) {
|
||||
return map.containsKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean add(Long e) {
|
||||
return map.put(e, Boolean.TRUE) == null;
|
||||
|
||||
Reference in New Issue
Block a user