Package io.micronaut.elasticsearch
Class DefaultHttpAsyncClientBuilderFactory
java.lang.Object
io.micronaut.elasticsearch.DefaultHttpAsyncClientBuilderFactory
@Requires(classes=org.elasticsearch.client.RestClient.class)
@Factory
public class DefaultHttpAsyncClientBuilderFactory
extends Object
The default factory used to create
HttpAsyncClientBuilder
for HTTP client configurations.- Since:
- 1.0.0
- Author:
- Puneet Behl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.impl.nio.client.HttpAsyncClientBuilder
The http client configuration (e.g.
-
Constructor Details
-
DefaultHttpAsyncClientBuilderFactory
public DefaultHttpAsyncClientBuilderFactory()
-
-
Method Details
-
httpAsyncClientBuilder
@Bean @Singleton protected org.apache.http.impl.nio.client.HttpAsyncClientBuilder httpAsyncClientBuilder()The http client configuration (e.g. encrypted communication over ssl, or anything that theHttpAsyncClientBuilder
allows to set).- Returns:
- The
HttpAsyncClientBuilder
bean with default configurations.
-