Nope. PreBuiltTransportClient
is provided in elasticsearch jar.
In your settings, I'd just keep:
settings.put("client.transport.sniff", config.getBoolean("client.transport.sniff", true));
settings.put("client.transport.ping_timeout", config.get("client.transport.ping_timeout", "10s"));
settings.put("client.transport.nodes_sampler_interval", config.get("client.transport.nodes_sampler_interval", "10s"));
And please format your code using </>
icon as explained in this guide. It will make your post more readable.
Or use markdown style like:
```
CODE
```