public class DefaultRouterResultsHandler extends Object implements RouterResultsHandler
MuleMessage
, than that message is returned. If the
'results' param contains more than one message a MuleMessageCollection
instance 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.Constructor and Description |
---|
DefaultRouterResultsHandler() |
DefaultRouterResultsHandler(boolean returnCollectionWithSingleResult) |
Modifier and Type | Method and Description |
---|---|
MuleEvent |
aggregateResults(List<MuleEvent> results,
MuleEvent previous,
MuleContext muleContext)
Aggregates the events in the results list into one single
MuleEvent
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 MuleEvent aggregateResults(List<MuleEvent> results, MuleEvent previous, MuleContext muleContext)
MuleEvent
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 RouterResultsHandler
results
- previous
- muleContext
- Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.