- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试定义一个 InboundChannelAdapter 来从队列 API(本例中为 Azure)读取消息。 native 方法如下所示:
@Bean
@InboundChannelAdapter(value = "myChannelExample",
poller = @Poller(fixedDelay = "1000",
maxMessagesPerPoll = "1"))
public MessageSource<QueueMessage> queueReadingMessageSource() {
return wrapMessage(queueClient.readMessage())
}
这按预期工作 - 但我想知道是否有一种更有效的方法来定义适配器,该适配器能够从消息源一次读取多个 (maxMessagesPerPoll>1) 消息?是否有允许返回消息列表的 messageSource 接口(interface)?
最佳答案
您只需返回一 strip 有 List<QueueSource>
的消息即可有效负载并在下游添加一个分离器。
关于java - spring 集成 inboundChannelAdapter 一次生成多条消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56972821/
我尝试定义一个 InboundChannelAdapter 来从队列 API(本例中为 Azure)读取消息。 native 方法如下所示: @Bean @InboundChannelAdap
我已经实现了Spring(启动)集成,我有一个InboundChannelAdapter,这个方法通过RestTemplate发送Web请求,并将结果传递给Splitter、Filter,最后到一个S
我正在尝试在 Spring 集成中实现自定义入站 channel 适配器以使用来自 apache kafka 的消息。基于 Spring 集成示例,我发现我需要创建一个实现 MessageSource
我有一个要使用的自定义 Spring XD 源: package com.my.springproject; import org.springframework.integration.
如何让 @InboundChannelAdapter 处理文件?像这样: 但是在java中呢? 最佳答案 像这样: @Bean @InboundChannelAdapter(va
我是一名优秀的程序员,十分优秀!