Skip to content

Commit 0297f6b

Browse files
committed
Fix dsl.adoc for the actual API around Supplier
1 parent ca9c919 commit 0297f6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reference/asciidoc/dsl.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class MyConfiguration {
3838
3939
@Bean
4040
public IntegrationFlow myFlow() {
41-
return IntegrationFlows.from(integerSource::getAndIncrement,
41+
return IntegrationFlows.fromSupplier(integerSource()::getAndIncrement,
4242
c -> c.poller(Pollers.fixedRate(100)))
4343
.channel("inputChannel")
4444
.filter((Integer p) -> p > 0)
@@ -388,7 +388,7 @@ public IntegrationFlow pollingFlow() {
388388
----
389389
====
390390

391-
For those cases that have no requirements to build `Message` objects directly, you can use the `IntegrationFlows.from()` variant that is based on the `java.util.function.Supplier` .
391+
For those cases that have no requirements to build `Message` objects directly, you can use a `IntegrationFlows.fromSupplier()` variant that is based on the `java.util.function.Supplier` .
392392
The result of the `Supplier.get()` is automatically wrapped in a `Message` (if it is not already a `Message`).
393393

394394
[[java-dsl-routers]]

0 commit comments

Comments
 (0)