public class ResponseCorrelationAggregator.DefaultEventCorrelatorCallback extends Object implements EventCorrelatorCallback
| Constructor and Description |
|---|
ResponseCorrelationAggregator.DefaultEventCorrelatorCallback() |
| Modifier and Type | Method and Description |
|---|---|
MuleMessage |
aggregateEvents(EventGroup events)
This method is invoked if the shouldAggregate method is called and returns
true.
|
EventGroup |
createEventGroup(MuleEvent event,
Object id)
Creates the event group with a specific correlation size based on the Mule
Correlation support
|
boolean |
shouldAggregateEvents(EventGroup events)
Determines if the event group is ready to be aggregated.
|
public ResponseCorrelationAggregator.DefaultEventCorrelatorCallback()
public MuleMessage aggregateEvents(EventGroup events) throws RoutingException
aggregateEvents in interface EventCorrelatorCallbackevents - the event group for this requestAggregationException - if the aggregation fails. in this scenario the
whole event group is removed and passed to the exception handler
for this componentRoutingExceptionpublic boolean shouldAggregateEvents(EventGroup events)
shouldAggregateEvents in interface EventCorrelatorCallbackevents - public EventGroup createEventGroup(MuleEvent event, Object id)
EventCorrelatorCallbackcreateEventGroup in interface EventCorrelatorCallbackevent - the current eventid - The group idCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.