|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.routing.SingleCorrelatorCallback
public class SingleCorrelatorCallback
A Correlator that correlates one message at a time
| Field Summary | |
|---|---|
protected Log |
logger
logger used by this class |
| Constructor Summary | |
|---|---|
SingleCorrelatorCallback()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final transient Log logger
| Constructor Detail |
|---|
public SingleCorrelatorCallback()
| Method Detail |
|---|
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 EventCorrelatorCallbackevents - event group to consider
EventCorrelatorCallback.shouldAggregateEvents(EventGroup)
public MuleMessage aggregateEvents(EventGroup events)
throws RoutingException
SingleResponseRouter will always return the first event of
an event group.
aggregateEvents in interface EventCorrelatorCallbackevents - the event group for this request
RoutingException - if the aggregation fails. in
this scenario the whole event group is removed and passed to the
exception handler for this componenet
AggregationException - if the aggregation fails. in this scenario the
whole event group is removed and passed to the exception handler
for this componentAbstractResponseAggregator.aggregateEvents(EventGroup)
public EventGroup createEventGroup(MuleEvent event,
Object id)
EventCorrelatorCallback
createEventGroup in interface EventCorrelatorCallbackevent - the current eventid - The group id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||