Package io.micronaut.elasticsearch
Class DefaultElasticsearchClientFactory
java.lang.Object
io.micronaut.elasticsearch.DefaultElasticsearchClientFactory
@Requires(beans=DefaultElasticsearchConfigurationProperties.class)
@Factory
public class DefaultElasticsearchClientFactory
extends Object
The default Factory for creating Elasticsearch client.
- Since:
- 1.0.0
- Author:
- lishuai, Puneet Behl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.elasticsearch.client.RestClientBuilder
restClientBuilder
(DefaultElasticsearchConfigurationProperties elasticsearchConfiguration)
-
Constructor Details
-
DefaultElasticsearchClientFactory
public DefaultElasticsearchClientFactory()
-
-
Method Details
-
restClientBuilder
protected org.elasticsearch.client.RestClientBuilder restClientBuilder(DefaultElasticsearchConfigurationProperties elasticsearchConfiguration) - Parameters:
elasticsearchConfiguration
- TheDefaultElasticsearchConfigurationProperties
object- Returns:
- The
RestClientBuilder
-