mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-167 simplified the map builder by making "file" very much an option parameter, is it not REQUIRED for all types of maps. Also updated the many of the TCP replication test to remove the user of file() as its simply not required for this in many cases.
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
@@ -31,8 +30,8 @@ public class CHMTestIterator1 {
|
||||
int runs = 3000000;
|
||||
ChronicleMapBuilder<String, Long> builder = ChronicleMapBuilder.of(String.class, Long.class)
|
||||
.entries(runs);
|
||||
String chmPath = System.getProperty("java.io.tmpdir") + System.getProperty("file.separator") + "CHMTestIterator1";
|
||||
ChronicleMap<String, Long> chm = builder.create(new File(chmPath));
|
||||
|
||||
ChronicleMap<String, Long> chm = builder.create();
|
||||
/*chm.put("k1", alValue.incrementAndGet());
|
||||
chm.put("k2", alValue.incrementAndGet());
|
||||
chm.put("k3", alValue.incrementAndGet());
|
||||
|
||||
Reference in New Issue
Block a user