public class DefaultRouterResultsHandler extends Object implements RouterResultsHandler
InternalMessage, than that message is returned.
Note that right now (as of Mule 2.0.1) this SPI is not pluggable and this implementation is the default and only
implementation.InternalMessage,
org.mule.runtime.core.DefaultMessageCollection| Constructor and Description |
|---|
DefaultRouterResultsHandler() |
DefaultRouterResultsHandler(boolean returnCollectionWithSingleResult) |
| Modifier and Type | Method and Description |
|---|---|
Event |
aggregateResults(List<Event> results,
Event previous)
Aggregates the events in the results list into one single
Event You should only use this
method when you're sure that all the events in the results list were generated by the same thread that's going to handle the
aggregated response |
public DefaultRouterResultsHandler()
public DefaultRouterResultsHandler(boolean returnCollectionWithSingleResult)
returnCollectionWithSingleResult - if a MuleMessageCollection should be return despite there's only one result eventpublic Event aggregateResults(List<Event> results, Event previous)
Event You should only use this
method when you're sure that all the events in the results list were generated by the same thread that's going to handle the
aggregated responseaggregateResults in interface RouterResultsHandlerresults - previous - Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.