gpt4 book ai didi

java - 所有这些消息从何而来?

转载 作者:行者123 更新时间:2023-12-04 06:53:17 24 4
gpt4 key购买 nike

此配置工作正常,但应该每 15 秒轮询一次的入站 channel 适配器正在连续运行。有谁知道我做错了什么?

<si:channel id="msgChannel" />

<si:inbound-channel-adapter ref="jdbcInputAdapter"
method="fetchData" channel="msgChannel">
<si:poller>
<si:interval-trigger interval="15000" />
</si:poller>
</si:inbound-channel-adapter>

<si:outbound-channel-adapter ref="shouter" method="shout" channel="msgChannel"/>

最佳答案

默认情况下,轮询器将从每个轮询的 channel 或源中获取所有消息。您可以使用 max-messages-per-poll 来调整它属性。如果您将其设置为 1,您将看到您期望的行为。

关于java - 所有这些消息从何而来?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2820810/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com