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 Details

  • Method Details

    • routerSinkConsumer

      @Bean public Consumer<Message<?>> routerSinkConsumer(org.springframework.integration.router.AbstractMessageRouter router)
    • 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()