From bf3db504af67e799aa47a92972ece659d8268c95 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Wed, 3 Oct 2018 11:29:09 -0400 Subject: [PATCH] GH-1490 Fixed the docs Resolves #1490 --- .../src/main/asciidoc/spring-cloud-stream-overview.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-stream-core-docs/src/main/asciidoc/spring-cloud-stream-overview.adoc b/spring-cloud-stream-core-docs/src/main/asciidoc/spring-cloud-stream-overview.adoc index ef2649c92..22625df00 100644 --- a/spring-cloud-stream-core-docs/src/main/asciidoc/spring-cloud-stream-overview.adoc +++ b/spring-cloud-stream-core-docs/src/main/asciidoc/spring-cloud-stream-overview.adoc @@ -1705,7 +1705,7 @@ public class SourceWithDynamicDestination { The https://github.com/spring-cloud-stream-app-starters/router[Router Sink Application] uses this technique to create the destinations on-demand. If the channel names are known in advance, you can configure the producer properties as with any other destination. -Alternatively, if you register a `NewBindingCallback<>` bean, it is invoked just before the binding is created. +Alternatively, if you register a `NewDestinationBindingCallback<>` bean, it is invoked just before the binding is created. The callback takes the generic type of the extended producer properties used by the binder. It has one method: @@ -1720,7 +1720,7 @@ The following example shows how to use the RabbitMQ binder: [source, java] ---- @Bean -public NewBindingCallback dynamicConfigurer() { +public NewDestinationBindingCallback dynamicConfigurer() { return (name, channel, props, extended) -> { props.setRequiredGroups("bindThisQueue"); extended.setQueueNameGroupOnly(true);