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
RestClient
through a RestClientBuilder
whilst
retaining default auto-configuration.- Since:
- 2.1.0
- Author:
- Brian Clozel, Vedran Pavic
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
customize
(org.apache.http.client.config.RequestConfig.Builder builder) Customize theRequestConfig.Builder
.default void
customize
(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder) Customize theHttpAsyncClientBuilder
.void
customize
(org.elasticsearch.client.RestClientBuilder builder) Customize theRestClientBuilder
.
-
Method Details
-
customize
void 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
-
customize
default void customize(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder) Customize theHttpAsyncClientBuilder
.- Parameters:
builder
- the builder- Since:
- 2.3.0
-
customize
default void customize(org.apache.http.client.config.RequestConfig.Builder builder) Customize theRequestConfig.Builder
.- Parameters:
builder
- the builder- Since:
- 2.3.0
-