Uses of Class
org.elasticsearch.client.RestClientBuilder
-
Packages that use RestClientBuilder Package Description org.elasticsearch.client -
-
Uses of RestClientBuilder in org.elasticsearch.client
Methods in org.elasticsearch.client that return RestClientBuilder Modifier and Type Method Description static RestClientBuilderRestClient. builder(String cloudId)Returns a newRestClientBuilderto help withRestClientcreation.static RestClientBuilderRestClient. builder(HttpHost... hosts)Returns a newRestClientBuilderto help withRestClientcreation.static RestClientBuilderRestClient. builder(Node... nodes)Returns a newRestClientBuilderto help withRestClientcreation.RestClientBuilderRestClientBuilder. setDefaultHeaders(Header[] defaultHeaders)Sets the default request headers, which will be sent along with each request.RestClientBuilderRestClientBuilder. setFailureListener(RestClient.FailureListener failureListener)Sets theRestClient.FailureListenerto be notified for each request failureRestClientBuilderRestClientBuilder. setHttpClientConfigCallback(RestClientBuilder.HttpClientConfigCallback httpClientConfigCallback)Sets theRestClientBuilder.HttpClientConfigCallbackto be used to customize http client configurationRestClientBuilderRestClientBuilder. setNodeSelector(NodeSelector nodeSelector)Sets theNodeSelectorto be used for all requests.RestClientBuilderRestClientBuilder. setPathPrefix(String pathPrefix)Sets the path's prefix for every request used by the http client.RestClientBuilderRestClientBuilder. setRequestConfigCallback(RestClientBuilder.RequestConfigCallback requestConfigCallback)Sets theRestClientBuilder.RequestConfigCallbackto be used to customize http client configurationRestClientBuilderRestClientBuilder. setStrictDeprecationMode(boolean strictDeprecationMode)Whether the REST client should return any response containing at least one warning header as a failure.Constructors in org.elasticsearch.client with parameters of type RestClientBuilder Constructor Description RestHighLevelClient(RestClientBuilder restClientBuilder)Creates aRestHighLevelClientgiven the low levelRestClientBuilderthat allows to build theRestClientto be used to perform requests.RestHighLevelClient(RestClientBuilder restClientBuilder, List<NamedXContentRegistry.Entry> namedXContentEntries)Creates aRestHighLevelClientgiven the low levelRestClientBuilderthat allows to build theRestClientto be used to perform requests and parsers for custom response sections added to Elasticsearch through plugins.
-