From cc465a38bf390c231d263b004b9bbd801bf5ae32 Mon Sep 17 00:00:00 2001 From: Philips Kokoh Date: Thu, 16 Jun 2016 11:32:49 +0800 Subject: [PATCH] TransportClient instead of Client in the code --- docs/java-api/client.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/java-api/client.asciidoc b/docs/java-api/client.asciidoc index c71bd5f6ece..bb254e8b356 100644 --- a/docs/java-api/client.asciidoc +++ b/docs/java-api/client.asciidoc @@ -37,7 +37,7 @@ be "two hop" operations). -------------------------------------------------- // on startup -Client client = TransportClient.builder().build() +TransportClient client = TransportClient.builder().build() .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host1"), 9300)) .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host2"), 9300)); @@ -53,7 +53,7 @@ Note that you have to set the cluster name if you use one different than -------------------------------------------------- Settings settings = Settings.builder() .put("cluster.name", "myClusterName").build(); -Client client = TransportClient.builder().settings(settings).build(); +TransportClient client = TransportClient.builder().settings(settings).build(); //Add transport addresses and do something with the client... --------------------------------------------------