io.quarkiverse.opensearch.restclient.highlevel.runtime.QuarkusRestHighLevelClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-opensearch-rest-high-level-client Show documentation
Show all versions of quarkus-opensearch-rest-high-level-client Show documentation
Connect to an OpenSearch cluster using the REST high level client
The newest version!
package io.quarkiverse.opensearch.restclient.highlevel.runtime;
import java.io.IOException;
import java.util.List;
import org.opensearch.client.RestClient;
import org.opensearch.client.RestHighLevelClient;
import org.opensearch.common.CheckedConsumer;
import org.opensearch.core.xcontent.NamedXContentRegistry;
/**
* The RestHighLevelClient cannot be built with an existing RestClient.
*
* The only (and documented - see javadoc) way to do it is to subclass it and use its protected constructor.
*/
class QuarkusRestHighLevelClient extends RestHighLevelClient {
protected QuarkusRestHighLevelClient(RestClient restClient, CheckedConsumer doClose,
List namedXContentEntries) {
super(restClient, doClose, namedXContentEntries);
}
}