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(Rest5ClientBuilder builder) Customize theRest5ClientBuilder.default voidcustomize(ConnectionConfig.Builder connectionConfigBuilder) Customize theConnectionConfig.Builder.default voidcustomize(RequestConfig.Builder requestConfigBuilder) Customize theRequestConfig.Builder.default voidcustomize(HttpAsyncClientBuilder httpAsyncClientBuilder) Customize theHttpAsyncClientBuilder.default voidcustomize(PoolingAsyncClientConnectionManagerBuilder connectionManagerBuilder) Customize thePoolingAsyncClientConnectionManagerBuilder.
-
Method Details
-
customize
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
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
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
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
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
-