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:
@@ -69,13 +69,11 @@ public class PostChannelCreationTest {
|
||||
// this is how you add maps after the custer is created
|
||||
map1a = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
.entries(1000)
|
||||
.channel(channelProviderA.createChannel((short) 1))
|
||||
.create(getPersistenceFile());
|
||||
.channel(channelProviderA.createChannel((short) 1)).create();
|
||||
|
||||
map2a = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
.entries(1000)
|
||||
.channel(channelProviderA.createChannel((short) 2))
|
||||
.create(getPersistenceFile());
|
||||
.channel(channelProviderA.createChannel((short) 2)).create();
|
||||
}
|
||||
|
||||
|
||||
@@ -90,13 +88,11 @@ public class PostChannelCreationTest {
|
||||
// this is how you add maps after the custer is created
|
||||
map1b = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
.entries(1000)
|
||||
.channel(channelProviderB.createChannel((short) 1))
|
||||
.create(getPersistenceFile());
|
||||
.channel(channelProviderB.createChannel((short) 1)).create();
|
||||
|
||||
map2b = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
.entries(1000)
|
||||
.channel(channelProviderB.createChannel((short) 2))
|
||||
.create(getPersistenceFile());
|
||||
.channel(channelProviderB.createChannel((short) 2)).create();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user