You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-8704: Add global property for defaultTimeout (#8706)
* GH-8704: Add global property for `defaultTimeout`
Fixes#8704
The default timeout for requests and replies in the integration endpoints
is 30 seconds to avoid indefinite blocking in threads.
Sometime those 30 seconds is not enough.
* Introduce a `spring.integration.endpoints.defaultTimeout` global property
to allow overriding all the timeouts to desired value.
The negative number indicates an indefinite waiting time: similar to what
was there before introducing 30 seconds by default
* Fix language in docs
Co-authored-by: Gary Russell <[email protected]>
---------
Co-authored-by: Gary Russell <[email protected]>
Copy file name to clipboardExpand all lines: spring-integration-amqp/src/test/java/org/springframework/integration/amqp/config/AmqpInboundGatewayParserTests.java
+16-20
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2022 the original author or authors.
2
+
* Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-integration-core/src/main/java/org/springframework/integration/gateway/MessagingGatewaySupport.java
Copy file name to clipboardExpand all lines: spring-integration-core/src/main/java/org/springframework/integration/handler/AbstractMessageProducingHandler.java
+6-4
Original file line number
Diff line number
Diff line change
@@ -89,16 +89,15 @@ public abstract class AbstractMessageProducingHandler extends AbstractMessageHan
Copy file name to clipboardExpand all lines: spring-integration-core/src/main/java/org/springframework/integration/scattergather/ScatterGatherHandler.java
+5-1
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ public class ScatterGatherHandler extends AbstractReplyProducingMessageHandler i
Copy file name to clipboardExpand all lines: spring-integration-core/src/test/java/org/springframework/integration/aggregator/CorrelatingMessageHandlerTests.java
+3-2
Original file line number
Diff line number
Diff line change
@@ -71,9 +71,10 @@ public void initializeSubject() {
Copy file name to clipboardExpand all lines: spring-integration-core/src/test/java/org/springframework/integration/config/annotation/AggregatorAnnotationTests.java
+3-3
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ public void testAnnotationWithDefaultSettings() {
Copy file name to clipboardExpand all lines: spring-integration-core/src/test/java/org/springframework/integration/config/xml/HeaderEnricherParserTests.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ class HeaderEnricherParserTests {
0 commit comments