@Configuration @ConditionalOnClass(value=org.elasticsearch.client.RestClient.class) @EnableConfigurationProperties(value=RestClientProperties.class) public class RestClientAutoConfiguration extends Object
Auto-configuration for Elasticsearch REST clients.| Modifier and Type | Class and Description |
|---|---|
static class |
RestClientAutoConfiguration.RestHighLevelClientConfiguration |
| Constructor and Description |
|---|
RestClientAutoConfiguration(RestClientProperties properties,
ObjectProvider<List<RestClientBuilderCustomizer>> builderCustomizers) |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.client.RestClient |
restClient(org.elasticsearch.client.RestClientBuilder builder) |
org.elasticsearch.client.RestClientBuilder |
restClientBuilder() |
public RestClientAutoConfiguration(RestClientProperties properties, ObjectProvider<List<RestClientBuilderCustomizer>> builderCustomizers)
@Bean @ConditionalOnMissingBean public org.elasticsearch.client.RestClient restClient(org.elasticsearch.client.RestClientBuilder builder)
@Bean @ConditionalOnMissingBean public org.elasticsearch.client.RestClientBuilder restClientBuilder()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.