mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-134 changed the default so that is does not autoReconnectedUponDroppedConnection, however it better if most of the test cases have this can you can guarantee that the server is ready to accept TCP/IP before the client.
This commit is contained in:
@@ -94,23 +94,25 @@ public class MapByNameTest {
|
||||
final ReplicationHubFindByName<CharSequence> mapByName = nodeDiscovery.mapByName();
|
||||
Thread.sleep(2000);
|
||||
|
||||
ChronicleMapBuilder<CharSequence, CharSequence> builder = ChronicleMapBuilder.of(CharSequence
|
||||
ChronicleMapBuilder<CharSequence, CharSequence> builder = ChronicleMapBuilder.of(CharSequence
|
||||
.class, CharSequence.class)
|
||||
.minSegments(2)
|
||||
.entries(2)
|
||||
.name("myMap5")
|
||||
.name("myMap6")
|
||||
.removeReturnsNull(true);
|
||||
|
||||
ChronicleMap<String, String> map = mapByName.create(builder);
|
||||
map.put("hello", "world");
|
||||
ChronicleMap<String, String> map = mapByName.create(builder);
|
||||
map.put("hello", "world");
|
||||
|
||||
// final ChronicleMap<CharSequence, CharSequence> map = mapByName.from("myMap5");
|
||||
// final ChronicleMap<CharSequence, CharSequence> map = mapByName.from("myMap5");
|
||||
|
||||
|
||||
// allow time for replication
|
||||
Thread.sleep(2000);
|
||||
System.out.print(map);
|
||||
|
||||
map.close();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user