该 round-robin 隐藏在 DirectChannel 同 UnicastingDispatcher 在...上 RoundRobinLoadBalancingStrategy 。
round-robin
DirectChannel
UnicastingDispatcher
RoundRobinLoadBalancingStrategy
所以,当你有几个订阅者时 DirectChannel ,消息将被发送给他们 round-robin 。
您的用例需要的只是配置10 <int-sftp:outbound-channel-adapter> 为您的每个远程服务器。并使用相同的简单 <channel> 他们的定义 channel 属性。
<int-sftp:outbound-channel-adapter>
<channel>
channel
该 <int-file:inbound-channel-adapter> 应始终将其消息发送到默认的共享通道 round-robin 战略。
<int-file:inbound-channel-adapter>