public final class ElasticsearchClients extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ElasticsearchClients.ElasticsearchClientConfigurationCallback
ClientConfiguration.ClientConfigurationCallback to configure
the RestClient with a HttpAsyncClientBuilder |
static interface |
ElasticsearchClients.WebClientConfigurationCallback
ClientConfiguration.ClientConfigurationCallback to configure
the ReactiveElasticsearchClient with a WebClient |
| Constructor and Description |
|---|
ElasticsearchClients() |
| Modifier and Type | Method and Description |
|---|---|
static co.elastic.clients.elasticsearch.ElasticsearchClient |
createImperative(ClientConfiguration clientConfiguration)
Creates a new imperative
ElasticsearchClient |
static co.elastic.clients.elasticsearch.ElasticsearchClient |
createImperative(ClientConfiguration clientConfiguration,
co.elastic.clients.transport.TransportOptions transportOptions)
Creates a new imperative
ElasticsearchClient |
static co.elastic.clients.elasticsearch.ElasticsearchClient |
createImperative(org.elasticsearch.client.RestClient restClient)
Creates a new imperative
ElasticsearchClient |
static co.elastic.clients.elasticsearch.ElasticsearchClient |
createImperative(org.elasticsearch.client.RestClient restClient,
co.elastic.clients.transport.TransportOptions transportOptions)
Creates a new imperative
ElasticsearchClient |
static ReactiveElasticsearchClient |
createReactive(ClientConfiguration clientConfiguration)
Creates a new
ReactiveElasticsearchClient |
static ReactiveElasticsearchClient |
createReactive(ClientConfiguration clientConfiguration,
co.elastic.clients.transport.TransportOptions transportOptions)
Creates a new
ReactiveElasticsearchClient |
static ReactiveElasticsearchClient |
createReactive(org.elasticsearch.client.RestClient restClient)
Creates a new
ReactiveElasticsearchClient. |
static ReactiveElasticsearchClient |
createReactive(org.elasticsearch.client.RestClient restClient,
co.elastic.clients.transport.TransportOptions transportOptions)
Creates a new
ReactiveElasticsearchClient. |
static org.elasticsearch.client.RestClient |
getRestClient(ClientConfiguration clientConfiguration)
Creates a low level
RestClient for the given configuration. |
public static ReactiveElasticsearchClient createReactive(ClientConfiguration clientConfiguration)
ReactiveElasticsearchClientclientConfiguration - configuration options, must not be null.ReactiveElasticsearchClientpublic static ReactiveElasticsearchClient createReactive(ClientConfiguration clientConfiguration, @Nullable co.elastic.clients.transport.TransportOptions transportOptions)
ReactiveElasticsearchClientclientConfiguration - configuration options, must not be null.transportOptions - options to be added to each request.ReactiveElasticsearchClientpublic static ReactiveElasticsearchClient createReactive(org.elasticsearch.client.RestClient restClient)
ReactiveElasticsearchClient.restClient - the underlying RestClientReactiveElasticsearchClientpublic static ReactiveElasticsearchClient createReactive(org.elasticsearch.client.RestClient restClient, @Nullable co.elastic.clients.transport.TransportOptions transportOptions)
ReactiveElasticsearchClient.restClient - the underlying RestClienttransportOptions - options to be added to each request.ReactiveElasticsearchClientpublic static co.elastic.clients.elasticsearch.ElasticsearchClient createImperative(ClientConfiguration clientConfiguration)
ElasticsearchClientclientConfiguration - configuration options, must not be null.ElasticsearchClientpublic static co.elastic.clients.elasticsearch.ElasticsearchClient createImperative(ClientConfiguration clientConfiguration, co.elastic.clients.transport.TransportOptions transportOptions)
ElasticsearchClientclientConfiguration - configuration options, must not be null.transportOptions - options to be added to each request.ElasticsearchClientpublic static co.elastic.clients.elasticsearch.ElasticsearchClient createImperative(org.elasticsearch.client.RestClient restClient)
ElasticsearchClientrestClient - the RestClient to useElasticsearchClientpublic static co.elastic.clients.elasticsearch.ElasticsearchClient createImperative(org.elasticsearch.client.RestClient restClient,
@Nullable
co.elastic.clients.transport.TransportOptions transportOptions)
ElasticsearchClientrestClient - the RestClient to usetransportOptions - options to be added to each request.ElasticsearchClientpublic static org.elasticsearch.client.RestClient getRestClient(ClientConfiguration clientConfiguration)
RestClient for the given configuration.clientConfiguration - must not be nullRestClientCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.