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:
@@ -77,8 +77,9 @@ public class TCPSocketReplicationTestPostConnection {
|
||||
ChronicleMapBuilder<Integer, CharSequence> map2aBuilder =
|
||||
newTcpSocketShmBuilder(Integer.class, CharSequence.class,
|
||||
(byte) 2, 8077, new InetSocketAddress("localhost", 8076));
|
||||
map2aBuilder.file(Builder.getPersistenceFile());
|
||||
final ChronicleMap<Integer, CharSequence> map2a =
|
||||
map2aBuilder.create(Builder.getPersistenceFile());
|
||||
map2aBuilder.create();
|
||||
map1 = TCPSocketReplication4WayMapTest.newTcpSocketShmIntString((byte) 1, 8076);
|
||||
|
||||
Thread.sleep(1);
|
||||
@@ -91,7 +92,8 @@ public class TCPSocketReplicationTestPostConnection {
|
||||
map1.put(6, "EXAMPLE-1");
|
||||
|
||||
// recreate map2 with new unique file
|
||||
map2 = map2aBuilder.create(Builder.getPersistenceFile());
|
||||
map2aBuilder.file(Builder.getPersistenceFile());
|
||||
map2 = map2aBuilder.create();
|
||||
|
||||
|
||||
// allow time for the recompilation to resolve
|
||||
|
||||
Reference in New Issue
Block a user