Interface RestClientBuilderCustomizer

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 RestClientBuilderCustomizer
Callback interface that can be implemented by beans wishing to further customize the RestClient through a RestClientBuilder whilst retaining default auto-configuration.
Since:
2.1.0
Author:
Brian Clozel, Vedran Pavic
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    customize(org.apache.http.client.config.RequestConfig.Builder builder)
    Customize the RequestConfig.Builder.
    default void
    customize(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder)
    Customize the HttpAsyncClientBuilder.
    void
    customize(org.elasticsearch.client.RestClientBuilder builder)
    Customize the RestClientBuilder.
  • Method Details

    • customize

      void customize(org.elasticsearch.client.RestClientBuilder builder)
      Customize the RestClientBuilder.

      Possibly overrides customizations made with the "spring.elasticsearch.rest" configuration properties namespace. For more targeted changes, see customize(HttpAsyncClientBuilder) and customize(RequestConfig.Builder).

      Parameters:
      builder - the builder to customize
    • customize

      default void customize(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder)
      Customize the HttpAsyncClientBuilder.
      Parameters:
      builder - the builder
      Since:
      2.3.0
    • customize

      default void customize(org.apache.http.client.config.RequestConfig.Builder builder)
      Customize the RequestConfig.Builder.
      Parameters:
      builder - the builder
      Since:
      2.3.0