Files
spring-integration/src/reference/asciidoc
Artem Bilan 1bec420fd1 Do not block by default (#8580)
Currently, many timeouts in the project are like `-1` or other negative value
with a meaning to wait indefinitely.

According to distributed systems design and bad demo developing experience
it is not OK to block forever.

* Rework most of the timeouts in the framework to be `30` seconds.
Only one remained as `1` seconds is a `PollingConsumer` where it is
better to not block even for those 30 seconds when no messages in the queue,
but let the polling task be rescheduled.
* Remove the `MessagingGatewaySupport.replyTimeout` propagation down to the
`PollingConsumer` correlator where it was a `-1` before and blocked
the polling thread on the `Queue.poll()`.
This fixed the problem with a single thread in a pool for auto-configured `TaskScheduler`.
Now with 1 seconds wait time we are able to switch to other scheduled tasks
even with only 1 thread in the pool
2023-03-21 17:43:00 -04:00
..
2022-02-15 13:00:24 -05:00
2022-01-18 14:38:50 -05:00
2019-12-26 15:41:19 -05:00
2022-01-18 14:38:50 -05:00
2022-01-18 14:38:50 -05:00
2023-02-21 15:18:03 -05:00
2022-02-15 13:00:24 -05:00
2022-05-11 16:43:27 -04:00
2019-02-15 15:54:18 -05:00
2022-10-25 11:10:37 -04:00
2023-03-21 17:43:00 -04:00
2022-02-15 13:00:24 -05:00
2022-11-02 10:19:58 -04:00
2023-02-21 15:18:03 -05:00
2023-03-21 17:43:00 -04:00
2023-02-21 15:18:03 -05:00
2023-03-21 17:43:00 -04:00
2022-02-15 13:00:24 -05:00
2023-03-21 17:43:00 -04:00
2023-02-21 15:18:03 -05:00
2023-03-21 17:43:00 -04:00
2022-02-15 13:00:24 -05:00
2022-02-15 13:00:24 -05:00
2023-03-21 17:43:00 -04:00
2022-02-15 13:00:24 -05:00
2022-02-15 13:00:24 -05:00
2021-11-15 12:21:52 -05:00