Update TransportClient java documentation (#24205)
We are using now in master `TransportAddress` instead of `InetSocketTransportAddress`.
This commit is contained in:
parent
caf376c8af
commit
0e322a7e0b
|
@ -38,8 +38,8 @@ be "two hop" operations).
|
|||
// on startup
|
||||
|
||||
TransportClient client = new PreBuiltTransportClient(Settings.EMPTY)
|
||||
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host1"), 9300))
|
||||
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host2"), 9300));
|
||||
.addTransportAddress(new TransportAddress(InetAddress.getByName("host1"), 9300))
|
||||
.addTransportAddress(new TransportAddress(InetAddress.getByName("host2"), 9300));
|
||||
|
||||
// on shutdown
|
||||
|
||||
|
|
Loading…
Reference in New Issue