我想使用java-dsl
來使用來自隊列通道的消息,但Integrations.from
沒有允許我指定輪詢的簽名。如何使用java-dsl爲隊列通道指定輪詢?
我該如何做到這一點?
例:
@Bean
IntegrationFlow flow() {
return IntegrationFlows.from(this.channel())
.handle(...)
.get();
}
@Bean
MessageChannel channel() {
return MessageChannels.queue().get();
}
我不熟悉XML(我來自駱駝)。我在這裏試過。奇蹟般有效。謝謝。 –