【发布时间】:2011-10-01 18:42:21
【问题描述】:
在 mule 3.x 中创建完全自定义聚合器的推荐方法是什么?完全自定义,我的意思是根据我自己的逻辑,不使用相关 ID、消息计数等。
mulesoft 网站上的文档已经过时,说要使用 3.x 中不存在的 AbstractEventAggregator:
http://www.mulesoft.org/documentation/display/MULE3USER/Message+Splitting+and+Aggregatio
深入挖掘,看起来这个类在 3.x 中已重命名为 AbstractAggregator:
http://www.mulesoft.org/docs/site/3.2.0/apidocs/org/mule/routing/AbstractAggregator.html
但是,没有示例说明如何使用它。上面第一个链接中描述的 LoanBroker 示例实际上使用了关联聚合器(在 2.x 示例中,我假设这是文档所指的内容)。
曾经有一个抽象类具有抽象方法shouldAggregate 和doAggregate。这是我想扩展的那种类。
【问题讨论】:
标签: mule aggregator