in wan/src/main/java/org/apache/geode_examples/wan/Example.java [33:48]
public static void main(String[] args) {
// connect to the locator in London cluster using port 10332
ClientCache cache = new ClientCacheFactory().addPoolLocator("127.0.0.1", 10332)
.set("log-level", "WARN").create();
// create a local region that matches the server region
Region<Integer, String> region =
cache.<Integer, String>createClientRegionFactory(ClientRegionShortcut.PROXY)
.create("example-region");
Example example = new Example(region);
example.insertValues(10);
example.printValues(example.getValues());
cache.close();
}