mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-163 Initial checking of - ( Move the identifier configuration from TCP/UDP Replication, back to the builder.), more on this JIRA coming soon...
This commit is contained in:
@@ -51,12 +51,12 @@ public class TwoMapOnDifferentServers {
|
||||
File persistenceFile = getPersistenceFile();
|
||||
map1 = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
.entries(20000)
|
||||
.addReplicator(tcp((byte) 1, tcpReplicationConfig))
|
||||
.replicators((byte) 1, tcp(tcpReplicationConfig))
|
||||
.create(persistenceFile);
|
||||
|
||||
map2 = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
.entries(20000)
|
||||
.addReplicator(tcp((byte) 2,
|
||||
.replicators((byte) 2, tcp(
|
||||
TcpReplicationConfig.of(8077).heartBeatInterval(1, SECONDS)))
|
||||
.create(persistenceFile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user