Update TransportClient java documentation (#24205)

We are using now in master `TransportAddress` instead of `InetSocketTransportAddress`.
This commit is contained in:
makeyang 2017-04-20 16:35:35 +08:00 committed by David Pilato
parent caf376c8af
commit 0e322a7e0b
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ be "two hop" operations).
// on startup // on startup
TransportClient client = new PreBuiltTransportClient(Settings.EMPTY) TransportClient client = new PreBuiltTransportClient(Settings.EMPTY)
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host1"), 9300)) .addTransportAddress(new TransportAddress(InetAddress.getByName("host1"), 9300))
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host2"), 9300)); .addTransportAddress(new TransportAddress(InetAddress.getByName("host2"), 9300));
// on shutdown // on shutdown