From d87165c7b4a841effb5d01da783a32b51d870526 Mon Sep 17 00:00:00 2001 From: Rob Austin Date: Fri, 10 Oct 2014 17:16:13 +0100 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 76ee1a7aa..217d00194 100644 --- a/README.md +++ b/README.md @@ -698,6 +698,7 @@ assertTrue(!map1.isEmpty()); This example is the same as the one above, but it uses a slow throttled TCP/IP connection to fill in updates that may have been missed when sent over UDP. Usually on a good network, for example a wired LAN, UDP won’t miss updates. But UDP does not support guaranteed delivery, we recommend also running a TCP connection along side to ensure the data becomes eventually consistent. Note : It is possible to use Chronicle without the TCP replication and just use UDP ( that’s if you like living dangerously ! ) + ``` java Map map1; Map map2; @@ -767,6 +768,18 @@ assertTrue(!map1.isEmpty()); } ``` +# Example : Creating a Chronicle Set and adding data to it + +This project also provideds the Chronicle Set, Chronicle Set is built on Chronicle Map, so the builder configuration are almost identical to Chronicle Map ( see above ), this example shows how to create a simple off heap set +``` java + Set set = ChronicleSetBuilder.of(Integer.class).create(); + + set.add(1); + set.remove(1) +``` +and just like map it support shared memory and TCP replication. + + # Performance Topics ### Tuning Chronicle Map with Large Data