Interface Rest5ClientBuilderCustomizer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Rest5ClientBuilderCustomizer
Callback interface that can be implemented by beans wishing to customize the Rest5ClientBuilder to fine-tune its auto-configuration before it creates a Rest5Client.
Since:
4.0.0
Author:
Brian Clozel, Vedran Pavic, Andy Wilkinson
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(co.elastic.clients.transport.rest5_client.low_level.Rest5ClientBuilder builder)
    Customize the Rest5ClientBuilder.
    default void
    customize(org.apache.hc.client5.http.config.ConnectionConfig.Builder connectionConfigBuilder)
    Customize the ConnectionConfig.Builder.
    default void
    customize(org.apache.hc.client5.http.config.RequestConfig.Builder requestConfigBuilder)
    Customize the RequestConfig.Builder.
    default void
    customize(org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder httpAsyncClientBuilder)
    Customize the HttpAsyncClientBuilder.
    default void
    customize(org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder connectionManagerBuilder)
    Customize the PoolingAsyncClientConnectionManagerBuilder.
  • Method Details

    • customize

      void customize(co.elastic.clients.transport.rest5_client.low_level.Rest5ClientBuilder builder)
      Customize the Rest5ClientBuilder.

      Possibly overrides customizations made with the "spring.elasticsearch.rest" configuration properties namespace. For more targeted changes, see:

      Parameters:
      builder - the builder to customize
    • customize

      default void customize(org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder httpAsyncClientBuilder)
      Customize the HttpAsyncClientBuilder. Unlike Rest5ClientBuilder.setHttpClientConfigCallback(Consumer), implementing this method does not replace other customization of the HTTP client builder.
      Parameters:
      httpAsyncClientBuilder - the HTTP client builder
    • customize

      default void customize(org.apache.hc.client5.http.config.RequestConfig.Builder requestConfigBuilder)
      Customize the RequestConfig.Builder. Unlike Rest5ClientBuilder.setRequestConfigCallback(Consumer), implementing this method does not replace other customization of the request config builder.
      Parameters:
      requestConfigBuilder - the request config builder
    • customize

      default void customize(org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder connectionManagerBuilder)
      Customize the PoolingAsyncClientConnectionManagerBuilder. Unlike Rest5ClientBuilder.setConnectionManagerCallback(Consumer), implementing this method does not replace other customization of the connection manager builder.
      Parameters:
      connectionManagerBuilder - the connection manager builder
    • customize

      default void customize(org.apache.hc.client5.http.config.ConnectionConfig.Builder connectionConfigBuilder)
      Customize the ConnectionConfig.Builder. Unlike Rest5ClientBuilder.setConnectionConfigCallback(Consumer), implementing this method does not replace other customization of the connection config builder.
      Parameters:
      connectionConfigBuilder - the connection config builder