mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 14:17:56 +00:00
perf[net]: Message增加了其它默认的实例
This commit is contained in:
1 parent
0f4278f5a2
commit
8a6c7bbbc1
3 files changed
+11
-7
No files matched your search
@@ -17,6 +17,7 @@ import com.zfoo.protocol.IPacket;
|
||||
import java.util.concurrent.ConcurrentNavigableMap;
|
||||
import java.util.concurrent.ConcurrentSkipListMap;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
import java.util.function.BiConsumer;
|
||||
|
||||
/**
|
||||
* @author jaysunxiao
|
||||
@@ -67,4 +68,9 @@ public class ConcurrentHeapMap<V extends IPacket> implements LpMap<V> {
|
||||
public long getIncrementIndex() {
|
||||
return maxIndexAtomic.incrementAndGet();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void forEach(BiConsumer<Long, V> biConsumer) {
|
||||
map.forEach(biConsumer);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user