OakMapBuilder<Long, AckData> oakMapBuilder = new OakMapBuilder<>(new OakLongComparator(),
new OakLongSerializer(), new OakAckDataSerializer(), Long.MIN_VALUE).setMemoryCapacity(MEBIBYTE);
for (int i = 0; i < 1000; i ++) {
OakMap<Long, AckData> oakMap = oakMapBuilder.buildOrderedMap();
}
And If I use one OakMapBuilder to create more than one OakMap in multi-threaded process, NativeMemoryAllocator will be Instantiated multiple times.
And If I use one OakMapBuilder to create more than one OakMap in multi-threaded process, NativeMemoryAllocator will be Instantiated multiple times.