|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.routing.response.SingleResponseWithCallbackCorrelator
public class SingleResponseWithCallbackCorrelator
A Correlator that correlates one message at a time, esscentially a RPC callback. This callback allows the user to set a callback method on the service component that recieves the message. Any changes made in the callback method will be sent back to the client that initiated the request.
| Field Summary | |
|---|---|
protected String |
callback
|
protected Log |
logger
logger used by this class |
| Constructor Summary | |
|---|---|
SingleResponseWithCallbackCorrelator(String callbackMethod)
|
|
| 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
protected String callback
| Constructor Detail |
|---|
public SingleResponseWithCallbackCorrelator(String callbackMethod)
| 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
org.mule.routing.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 component.
AggregationException - 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 EventCorrelatorCallbackevent - the current eventid - The group id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||