Man*_*noj 15 multicast apache-camel
这两者有何不同?
from(endpoint).to(endpoint:a, endpoint:b)
from(endpoint).multicast().to(endpoint:a, endpoint:b)
Run Code Online (Sandbox Code Playgroud)
找不到第一个的任何文档
jar*_*rad 25
to(endpoint:a, endpoint:b)相当于.to(endpoint:a).to(endpoint:b)这意味着输出来自endpoint:a而endpoint:b不是原始输出Exchange.此外,每个端点一个接一个地执行.
.multicast()将原始发送Exchange到每个定义的端点,允许并行处理,并允许您定义AggregationStrategy以确定如何组合原始Exchange发送到的每个端点的响应.
是的,就像jarrad写的那样,两者之间存在差异
第一个是管道和过滤器EIP(Camel中的默认模式).这里记录了:http://camel.apache.org/pipes-and-filters.html
第二个是多播EIP,在此处记录:http: //camel.apache.org/multicast.html
所有Camel EIP都列在这里:http://camel.apache.org/eip
| 归档时间: |
|
| 查看次数: |
7032 次 |
| 最近记录: |