Class RouterSinkConfiguration
java.lang.Object
org.springframework.cloud.stream.app.sink.router.RouterSinkConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties(RouterSinkProperties.class)
public class RouterSinkConfiguration
extends Object
A sink app that routes to one or more named channels.
- Author:
- Gary Russell, Artem Bilan, Christian Tzolov, Soby Chacko
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.integration.router.AbstractMessageRouter
router
(org.springframework.cloud.stream.binding.BindingService bindingService, org.springframework.cloud.stream.function.StreamBridge streamBridge, org.springframework.integration.handler.MessageProcessor<?> scriptProcessor) routerSinkConsumer
(org.springframework.integration.router.AbstractMessageRouter router) org.springframework.integration.handler.MessageProcessor<?>
-
Constructor Details
-
RouterSinkConfiguration
-
-
Method Details
-
routerSinkConsumer
-
router
@Bean public org.springframework.integration.router.AbstractMessageRouter router(org.springframework.cloud.stream.binding.BindingService bindingService, org.springframework.cloud.stream.function.StreamBridge streamBridge, @Nullable org.springframework.integration.handler.MessageProcessor<?> scriptProcessor) -
scriptProcessor
@Bean @ConditionalOnProperty("router.script") public org.springframework.integration.handler.MessageProcessor<?> scriptProcessor()
-