mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 02:14:52 +00:00
获取 memory
This commit is contained in:
1 parent
1b06137705
commit
c590ccf87a
1 file changed
+8
+8
@@ -2,8 +2,12 @@ package com.zfoo.net.consumer.balancer;
|
||||
|
||||
import com.zfoo.net.NetContext;
|
||||
import com.zfoo.net.session.Session;
|
||||
import org.apache.curator.shaded.com.google.common.collect.Lists;
|
||||
import org.apache.curator.shaded.com.google.common.util.concurrent.AtomicLongMap;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 记忆化一致性hash
|
||||
*
|
||||
@@ -46,4 +50,8 @@ public class ConsistentHashOfMemoryConsumerLoadBalancer extends ConsistentHashCo
|
||||
}
|
||||
return loadBalancer;
|
||||
}
|
||||
|
||||
public static Map<Long, Long> getUid2sidMap(){
|
||||
return uid2sidMap.asMap();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user