Class ReactiveRestClients
java.lang.Object
org.springframework.data.elasticsearch.client.reactive.ReactiveRestClients
Utility class for common access to reactive Elasticsearch clients.
ReactiveRestClients consolidates set up
routines for the various drivers into a single place.- Since:
- 3.2
- Author:
- Christoph Strobl, Mark Paluch, Roman Puchkovskiy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceClientConfiguration.ClientConfigurationCallbackto configure the ReactiveElasticsearchClient with aWebClient -
Method Summary
Modifier and TypeMethodDescriptionstatic ReactiveElasticsearchClientcreate(ClientConfiguration clientConfiguration) Start here to create a new client tailored to your needs.static ReactiveElasticsearchClientcreate(ClientConfiguration clientConfiguration, RequestCreator requestCreator) Start here to create a new client tailored to your needs.
-
Method Details
-
create
Start here to create a new client tailored to your needs.- Parameters:
clientConfiguration- client configuration to use for buildingReactiveElasticsearchClient; must not be null.- Returns:
- new instance of
ReactiveElasticsearchClient.
-
create
public static ReactiveElasticsearchClient create(ClientConfiguration clientConfiguration, RequestCreator requestCreator) Start here to create a new client tailored to your needs.- Parameters:
clientConfiguration- client configuration to use for buildingReactiveElasticsearchClient; must not be null.requestCreator- request creator to use in the client; must not be null.- Returns:
- new instance of
ReactiveElasticsearchClient.
-