public class SingleCorrelatorCallback extends Object implements EventCorrelatorCallback
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger
logger used by this class
|
Constructor and Description |
---|
SingleCorrelatorCallback() |
Modifier and Type | Method and Description |
---|---|
MuleMessage |
aggregateEvents(EventGroup events)
The
SingleResponseRouter will always return the first event of
an event group. |
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)
The
SingleResponseRouter will return true if the event group
size is 1. |
protected final transient org.apache.commons.logging.Log logger
public boolean shouldAggregateEvents(EventGroup events)
SingleResponseRouter
will return true if the event group
size is 1. If the group size is greater than 1, a warning will be logged.shouldAggregateEvents
in interface EventCorrelatorCallback
events
- org.mule.routing.response.AbstractResponseAggregator#shouldAggregateEvents(EventGroup)}
public MuleMessage aggregateEvents(EventGroup events) throws RoutingException
SingleResponseRouter
will always return the first event of
an event group.aggregateEvents
in interface EventCorrelatorCallback
events
- the event group for this requestRoutingException
- if the aggregation fails. in
this scenario the whole event group is removed and passed to the
exception handler for this componenetAggregationException
- if the aggregation fails. in this scenario the
whole event group is removed and passed to the exception handler
for this componentorg.mule.routing.response.AbstractResponseAggregator#aggregateEvents(EventGroup)}
public EventGroup createEventGroup(MuleEvent event, Object id)
EventCorrelatorCallback
createEventGroup
in interface EventCorrelatorCallback
event
- the current eventid
- The group idCopyright © 2003–2013 MuleSource, Inc.. All rights reserved.