From 3d6a9eae14420b0258aeb80188cbcda1609ec9ed Mon Sep 17 00:00:00 2001 From: Rob Austin Date: Mon, 27 Oct 2014 15:18:04 +0000 Subject: [PATCH] HCOLL-167 updated docs --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ad23c44a2..bd7f7803b 100644 --- a/README.md +++ b/README.md @@ -594,7 +594,9 @@ not ideal. This is why we created Chronicle Channels. Channels let you replicate Chronicle Maps via a single point to point socket connection. Chronicle Channels are similar to TCP replication, where each map has to be given a unique identifier, but -when using Chronicle Channels its the channels that are given the unique identifier not the map. +when using Chronicle Channels its the channels that are used to identify the map. +The identifier is used to identify the host/server. Each host must be give a unique identifier. + ``` java int maxEntrySize = 1024; @@ -668,7 +670,6 @@ unique for each map you have. .entries(1000) .channel(channelProviderServer1.createChannel(channel1)).create(); - favoriteColourServer1.put("peter", "green"); // this demotes favoriteComputer short channel2 = (short) 2; @@ -677,6 +678,9 @@ unique for each map you have. .entries(1000) .channel(channelProviderServer1.createChannel(channel2)).create(); + + favoriteColourServer1.put("peter", "green"); + favoriteComputerServer1.put("peter", "dell"); } @@ -701,9 +705,6 @@ unique for each map you have. .entries(1000) .channel(channelProviderServer2.createChannel(channel1)).create(); - - favoriteColourServer2.put("rob", "blue"); - // this demotes favoriteComputer short channel2 = (short) 2; @@ -711,6 +712,9 @@ unique for each map you have. .entries(1000) .channel(channelProviderServer2.createChannel(channel2)).create(); + + favoriteColourServer2.put("rob", "blue"); + favoriteComputerServer2.put("rob", "mac"); favoriteComputerServer2.put("daniel", "mac"); }