Remove poller props in favor of Spring Boot

Starting with Spring Boot `2.6`, the auto-configuration
for Spring Integration introduces `poller` properties.
The `DefaultPollerProperties` and its respective `ChannelBindingAutoConfiguration` are not needed any more.

* Add `PollerConfigEnvironmentPostProcessor` to remap deprecated
`spring.cloud.stream.poller` into respective `spring.integration.poller`
properties
* Mention in the docs a deprecation move and its replacement

Related to: https://github.com/spring-projects/spring-boot/pull/27992
Resolves #2233
This commit is contained in:
Artem Bilan
2021-10-07 16:31:41 -04:00
committed by Oleg Zhurakousky
parent 302a44ddb6
commit f8a570a2cb
5 changed files with 76 additions and 172 deletions

View File

@@ -528,8 +528,7 @@ But if you do need to write an explicit `Consumer<Flux<?>>`, remember to subscri
====== Polling Configuration Properties
The following properties are exposed by `org.springframework.cloud.stream.config.DefaultPollerProperties` and are prefixed with
`spring.cloud.stream.poller`:
The following properties are exposed (although deprecated since version 3.2) by Spring Cloud Stream and are prefixed with the `spring.cloud.stream.poller`:
fixedDelay::
Fixed delay for default poller in milliseconds.
@@ -558,6 +557,9 @@ Default: MILLISECONDS.
For example `--spring.cloud.stream.poller.fixed-delay=2000` sets the poller interval to poll every two seconds.
IMPORTANT: These poller properties are deprecated starting version 3.2 in favor of similar configuration properties from Spring Boot auto-configuration for Spring Integration.
See `org.springframework.boot.autoconfigure.integration.IntegrationProperties.Poller` for more information.
===== Sending arbitrary data to an output (e.g. Foreign event-driven sources)
There are cases where the actual source of data may be coming from the external (foreign) system that is not a binder. For example, the