Class ReactiveElasticsearchLegacyRestClientConfiguration
java.lang.Object
org.springframework.data.elasticsearch.config.ElasticsearchConfigurationSupport
org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchLegacyRestClientConfiguration
@Deprecated(since="6.0",
forRemoval=true)
public abstract class ReactiveElasticsearchLegacyRestClientConfiguration
extends ElasticsearchConfigurationSupport
Deprecated, for removal: This API element is subject to removal in a future version.
Base class for a @
This class uses the Elasticsearch RestClient which was replaced b y the Rest5Client in Elasticsearch 9. It is still available here but deprecated. *
Configuration class to set up the Elasticsearch
connection using the ReactiveElasticsearchClient. This class exposes different parts of the setup as Spring
beans. Deriving * classes must provide the ClientConfiguration to use. This class uses the Elasticsearch RestClient which was replaced b y the Rest5Client in Elasticsearch 9. It is still available here but deprecated. *
- Since:
- 4.4
- Author:
- Peter-Josef Meisch
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionabstract ClientConfigurationDeprecated, for removal: This API element is subject to removal in a future version.Must be implemented by deriving classes to provide theClientConfiguration.org.elasticsearch.client.RestClientelasticsearchRestClient(ClientConfiguration clientConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.Provides the underlying low level RestClient.co.elastic.clients.transport.ElasticsearchTransportelasticsearchTransport(org.elasticsearch.client.RestClient restClient, co.elastic.clients.json.JsonpMapper jsonpMapper) Deprecated, for removal: This API element is subject to removal in a future version.Provides the Elasticsearch transport to be used.co.elastic.clients.json.JsonpMapperDeprecated, for removal: This API element is subject to removal in a future version.Provides the JsonpMapper that is used in theelasticsearchTransport(RestClient, JsonpMapper)method and exposes it as a bean.reactiveElasticsearchClient(co.elastic.clients.transport.ElasticsearchTransport transport) Deprecated, for removal: This API element is subject to removal in a future version.Provides theReactiveElasticsearchClientinstance used.reactiveElasticsearchOperations(ElasticsearchConverter elasticsearchConverter, ReactiveElasticsearchClient reactiveElasticsearchClient) Deprecated, for removal: This API element is subject to removal in a future version.CreatesReactiveElasticsearchOperations.co.elastic.clients.transport.TransportOptionsDeprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.springframework.data.elasticsearch.config.ElasticsearchConfigurationSupport
elasticsearchCustomConversions, elasticsearchEntityMapper, elasticsearchMappingContext, fieldNamingStrategy, getInitialEntitySet, getMappingBasePackages, refreshPolicy, scanForEntities, writeTypeHints
-
Constructor Details
-
ReactiveElasticsearchLegacyRestClientConfiguration
public ReactiveElasticsearchLegacyRestClientConfiguration()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
clientConfiguration
@Bean(name="elasticsearchClientConfiguration") public abstract ClientConfiguration clientConfiguration()Deprecated, for removal: This API element is subject to removal in a future version.Must be implemented by deriving classes to provide theClientConfiguration.- Returns:
- configuration, must not be null
-
elasticsearchRestClient
@Bean public org.elasticsearch.client.RestClient elasticsearchRestClient(ClientConfiguration clientConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.Provides the underlying low level RestClient.- Parameters:
clientConfiguration- configuration for the client, must not be null- Returns:
- RestClient
-
elasticsearchTransport
@Bean public co.elastic.clients.transport.ElasticsearchTransport elasticsearchTransport(org.elasticsearch.client.RestClient restClient, co.elastic.clients.json.JsonpMapper jsonpMapper) Deprecated, for removal: This API element is subject to removal in a future version.Provides the Elasticsearch transport to be used. The default implementation uses theRestClientbean and theJsonpMapperbean provided in this class.- Returns:
- the
ElasticsearchTransport - Since:
- 5.2
-
reactiveElasticsearchClient
@Bean public ReactiveElasticsearchClient reactiveElasticsearchClient(co.elastic.clients.transport.ElasticsearchTransport transport) Deprecated, for removal: This API element is subject to removal in a future version.Provides theReactiveElasticsearchClientinstance used.- Parameters:
transport- the ElasticsearchTransport to use- Returns:
- ReactiveElasticsearchClient instance.
-
reactiveElasticsearchOperations
@Bean(name={"reactiveElasticsearchOperations","reactiveElasticsearchTemplate"}) public ReactiveElasticsearchOperations reactiveElasticsearchOperations(ElasticsearchConverter elasticsearchConverter, ReactiveElasticsearchClient reactiveElasticsearchClient) Deprecated, for removal: This API element is subject to removal in a future version.CreatesReactiveElasticsearchOperations.- Returns:
- never null.
-
jsonpMapper
Deprecated, for removal: This API element is subject to removal in a future version.Provides the JsonpMapper that is used in theelasticsearchTransport(RestClient, JsonpMapper)method and exposes it as a bean.- Returns:
- the
JsonpMapperto use - Since:
- 5.2
-
transportOptions
public co.elastic.clients.transport.TransportOptions transportOptions()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the options that should be added to every request. Must not be null
-
ReactiveElasticsearchConfiguration