See gh-20994
This commit is contained in:
Brian Clozel
2020-04-21 15:31:05 +02:00
parent f701d97b92
commit f103966743

View File

@@ -34,6 +34,11 @@ public interface RestClientBuilderCustomizer {
/**
* Customize the {@link RestClientBuilder}.
* <p>
* Possibly overrides customizations made with the {@code "spring.elasticsearch.rest"}
* configuration properties namespace. For more targeted changes, see
* {@link #customize(HttpAsyncClientBuilder)} and
* {@link #customize(RequestConfig.Builder)}.
* @param builder the builder to customize
*/
void customize(RestClientBuilder builder);
@@ -41,6 +46,7 @@ public interface RestClientBuilderCustomizer {
/**
* Customize the {@link HttpAsyncClientBuilder}.
* @param builder the builder
* @since 2.3.0
*/
default void customize(HttpAsyncClientBuilder builder) {
}
@@ -48,6 +54,7 @@ public interface RestClientBuilderCustomizer {
/**
* Customize the {@link RequestConfig.Builder}.
* @param builder the builder
* @since 2.3.0
*/
default void customize(RequestConfig.Builder builder) {
}