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.
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 TypeMethodDescriptionvoidcustomize(co.elastic.clients.transport.rest5_client.low_level.Rest5ClientBuilder builder) Customize theRest5ClientBuilder.default voidcustomize(org.apache.hc.client5.http.config.ConnectionConfig.Builder connectionConfigBuilder) Customize theConnectionConfig.Builder.default voidcustomize(org.apache.hc.client5.http.config.RequestConfig.Builder requestConfigBuilder) Customize theRequestConfig.Builder.default voidcustomize(org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder httpAsyncClientBuilder) Customize theHttpAsyncClientBuilder.default voidcustomize(org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder connectionManagerBuilder) Customize thePoolingAsyncClientConnectionManagerBuilder.
-
Method Details
-
customize
void customize(co.elastic.clients.transport.rest5_client.low_level.Rest5ClientBuilder builder) Customize theRest5ClientBuilder.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 theHttpAsyncClientBuilder. UnlikeRest5ClientBuilder.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 theRequestConfig.Builder. UnlikeRest5ClientBuilder.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 thePoolingAsyncClientConnectionManagerBuilder. UnlikeRest5ClientBuilder.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 theConnectionConfig.Builder. UnlikeRest5ClientBuilder.setConnectionConfigCallback(Consumer), implementing this method does not replace other customization of the connection config builder.- Parameters:
connectionConfigBuilder- the connection config builder
-