Fix default value in ReactorNettyClientRequestFactory#setExchangeTimeout

Closes gh-32419
This commit is contained in:
Stéphane Nicoll 2024-03-12 08:13:42 +01:00
parent 80f3be6577
commit 88b3844d9b
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 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.
@ -175,7 +175,7 @@ public class ReactorNettyClientRequestFactory implements ClientHttpRequestFactor
/**
* Set the timeout for the HTTP exchange in milliseconds.
* <p>Default is 30 seconds.
* <p>Default is 5 seconds.
*/
public void setExchangeTimeout(long exchangeTimeout) {
Assert.isTrue(exchangeTimeout > 0, "Timeout must be a positive value");
@ -184,7 +184,7 @@ public class ReactorNettyClientRequestFactory implements ClientHttpRequestFactor
/**
* Set the timeout for the HTTP exchange.
* <p>Default is 30 seconds.
* <p>Default is 5 seconds.
*/
public void setExchangeTimeout(Duration exchangeTimeout) {
Assert.notNull(exchangeTimeout, "ExchangeTimeout must not be null");