Class RestClients
java.lang.Object
org.springframework.data.elasticsearch.client.elc.rest_client.RestClients
Deprecated, for removal: This API element is subject to removal in a future version.
since 6.0, use the new Rest5Client the code for that is in the package ../rest_client.
Utility class containing the functions to create the Elasticsearch RestClient used up to Elasticsearch 9.
- Since:
- 6.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated, for removal: This API element is subject to removal in a future version.ClientConfiguration.ClientConfigurationCallbackto configure the Elasticsearch RestClient's Http client with aHttpAsyncClientBuilderstatic interfaceDeprecated, for removal: This API element is subject to removal in a future version.ClientConfiguration.ClientConfigurationCallbackto configure the RestClient client with aRestClientBuilder -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.elasticsearch.client.RestClientgetRestClient(ClientConfiguration clientConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.Creates a low levelRestClientfor the given configuration.static co.elastic.clients.transport.rest_client.RestClientOptions.BuildergetRestClientOptionsBuilder(@Nullable co.elastic.clients.transport.TransportOptions transportOptions) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
RestClients
public RestClients()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getRestClient
public static org.elasticsearch.client.RestClient getRestClient(ClientConfiguration clientConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.Creates a low levelRestClientfor the given configuration.- Parameters:
clientConfiguration- must not be null- Returns:
- the
RestClient
-
getRestClientOptionsBuilder
public static co.elastic.clients.transport.rest_client.RestClientOptions.Builder getRestClientOptionsBuilder(@Nullable co.elastic.clients.transport.TransportOptions transportOptions) Deprecated, for removal: This API element is subject to removal in a future version.
-