HCOLL-167 updated the documentation to this new style - ".file(file).create();"

This commit is contained in:
Rob Austin
2014-10-20 17:31:58 +01:00
parent 3a82340ee7
commit bc10ed099c
+2 -2
View File
@@ -488,7 +488,7 @@ TcpReplicationConfig tcpConfig = ...
map = ChronicleMapBuilder
.of(Integer.class, CharSequence.class)
.addReplicator(Replicators.tcp(identifier, tcpConfig))
.create(file);
.create();
```
### Bootstrapping
@@ -593,7 +593,7 @@ Attaching ChannelProvider replication to the map:
ChronicleMap<Integer, CharSequence> map = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.entries(1000)
.channel(channelProviderA.createChannel((short) 1))
.create(getPersistenceFile());
.create();
```
The chronicle channel is use to identify which map is to be replicated to which other map on