@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() |
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.client.RestClient |
restClient(org.elasticsearch.client.RestClientBuilder builder) |
org.elasticsearch.client.RestClientBuilder |
restClientBuilder(RestClientProperties properties,
ObjectProvider<RestClientBuilderCustomizer> builderCustomizers) |
@Bean @ConditionalOnMissingBean public org.elasticsearch.client.RestClient restClient(org.elasticsearch.client.RestClientBuilder builder)
@Bean @ConditionalOnMissingBean public org.elasticsearch.client.RestClientBuilder restClientBuilder(RestClientProperties properties, ObjectProvider<RestClientBuilderCustomizer> builderCustomizers)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.