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.
Callback interface that can be implemented by beans wishing to further customize the
 
RestClientBuilder to fine-tune its auto-configuration before it creates the
 RestClient.- Since:
- 2.1.0
- Author:
- Brian Clozel, Vedran Pavic
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidcustomize(org.apache.http.client.config.RequestConfig.Builder builder) Customize theRequestConfig.Builder.default voidcustomize(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder) Customize theHttpAsyncClientBuilder.voidcustomize(org.elasticsearch.client.RestClientBuilder builder) Customize theRestClientBuilder.
- 
Method Details- 
customizevoid customize(org.elasticsearch.client.RestClientBuilder builder) Customize theRestClientBuilder.Possibly overrides customizations made with the "spring.elasticsearch.rest"configuration properties namespace. For more targeted changes, seecustomize(HttpAsyncClientBuilder)andcustomize(RequestConfig.Builder).- Parameters:
- builder- the builder to customize
 
- 
customizedefault void customize(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder) Customize theHttpAsyncClientBuilder.- Parameters:
- builder- the builder
- Since:
- 2.3.0
 
- 
customizedefault void customize(org.apache.http.client.config.RequestConfig.Builder builder) Customize theRequestConfig.Builder.- Parameters:
- builder- the builder
- Since:
- 2.3.0
 
 
-