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 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 the HttpAsyncClientBuilder allows to set).
      Returns:
      The HttpAsyncClientBuilder bean with default configurations.