OpenSearch/client
Luca Cavanna 6d8e2c6d4c Make RestHighLevelClient Closeable and simplify its creation (#26180)
By making RestHighLevelClient Closeable, its close method will close the internal low-level REST client instance by default, which simplifies the way most users interact with the high-level client.

Its constructor accepts now a RestClientBuilder, which clarifies that the low-level REST client is internally created and managed.

It is still possible to provide an already built `RestClient` instance, but that can only be done by subclassing `RestHighLevelClient` and calling the protected constructor that accepts a `RestClient`. In such case a consumer has also to be provided, which controls what has to be done when the high-level client gets done.

Closes #26086
2017-08-24 09:39:41 +02:00
..
benchmark Shade external dependencies in the rest client jar 2017-07-24 12:55:43 -05:00
client-benchmark-noop-api-plugin Add a shard filter search phase to pre-filter shards based on query rewriting (#25658) 2017-07-12 22:19:20 +02:00
rest Make RestHighLevelClient Closeable and simplify its creation (#26180) 2017-08-24 09:39:41 +02:00
rest-high-level Make RestHighLevelClient Closeable and simplify its creation (#26180) 2017-08-24 09:39:41 +02:00
sniffer Add links to external classes in clients javadoc (#25998) 2017-08-17 21:03:47 +02:00
test Shade external dependencies in the rest client jar 2017-07-24 12:55:43 -05:00
transport Add links to external classes in clients javadoc (#25998) 2017-08-17 21:03:47 +02:00