【问题标题】:Spring Integration DSL, poll from message channelSpring Integration DSL,从消息通道轮询
【发布时间】:2019-06-29 11:37:13
【问题描述】:

我有一个将数据发送到消息通道的服务。我想知道如何指定集成流以每隔 X 秒从该消息通道轮询一次并读取迄今为止尚未读取的所有数据。我正在尝试实现这样的目标:

IntegrationFlows.from("inputChannel")
    //.poll(Poller.fixedDelay(3, TimeUnit.SECONDS)))
    .handle(myGenericHandlerImpl)
    .get()

【问题讨论】:

    标签: java spring spring-boot spring-integration spring-integration-dsl


    【解决方案1】:

    想出了这个 我在找这个:

    IntegrationFlows.from("inputChannel")
        .handle(myGenericHandlerImpl, e -> e.poller(Pollers.fixedDelay(3, TimeUnit.SECONDS)))
        .get()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-15
      • 2018-12-28
      • 2015-01-29
      • 2012-06-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多