mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 04:16:53 +00:00
ref[provider]: refactor consistent hash load balancing
This commit is contained in:
1 parent
471f0611e7
commit
d5249ed904
5 files changed
+41
-61
No files matched your search
@@ -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