@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,
org.springframework.beans.factory.ObjectProvider<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, org.springframework.beans.factory.ObjectProvider<RestClientBuilderCustomizer> builderCustomizers)
@Bean @ConditionalOnMissingBean public org.elasticsearch.client.RestClient restClient(org.elasticsearch.client.RestClientBuilder builder)
@Bean @ConditionalOnMissingBean public org.elasticsearch.client.RestClientBuilder restClientBuilder()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.