See gh-20205
This commit is contained in:
Brian Clozel
2020-04-02 15:13:32 +02:00
parent a7e57e0909
commit bbbf8c527d
4 changed files with 6 additions and 6 deletions

View File

@@ -35,7 +35,8 @@ public class CodecProperties {
/**
* Limit on the number of bytes that can be buffered whenever the input stream needs
* to be aggregated. By default this is not set, in which case individual codec
* to be aggregated. This applies only to the auto-configured WebFlux server and
* WebClient instances. By default this is not set, in which case individual codec
* defaults apply. Most codecs are limited to 256K by default.
*/
private DataSize maxInMemorySize;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -54,7 +54,7 @@ public class ReactiveRestClientAutoConfiguration {
builder.usingSsl();
}
configureTimeouts(builder, properties);
configureWebClient(builder, properties);
configureExchangeStrategies(builder, properties);
return builder.build();
}
@@ -70,7 +70,7 @@ public class ReactiveRestClientAutoConfiguration {
});
}
private void configureWebClient(ClientConfiguration.TerminalClientConfigurationBuilder builder,
private void configureExchangeStrategies(ClientConfiguration.TerminalClientConfigurationBuilder builder,
ReactiveRestClientProperties properties) {
PropertyMapper map = PropertyMapper.get();
builder.withWebClientConfigurer((webClient) -> {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -77,7 +77,6 @@ public class ReactiveRestClientAutoConfigurationTests {
this.contextRunner.withPropertyValues(
"spring.data.elasticsearch.client.reactive.endpoints=" + elasticsearch.getContainerIpAddress() + ":"
+ elasticsearch.getFirstMappedPort(),
"spring.data.elasticsearch.client.reactive.max-in-memory-size=-1",
"spring.data.elasticsearch.client.reactive.connection-timeout=120s",
"spring.data.elasticsearch.client.reactive.socket-timeout=120s").run((context) -> {
ReactiveElasticsearchClient client = context.getBean(ReactiveElasticsearchClient.class);