|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.api.routing.AggregationContext
public final class AggregationContext
Immutable object used to provide all the necessary information to perform an
aggregation operation in one single parameter, helping to maintain consistent and
simple signatures across aggregators The most important attribute in this class is
events which holds the events to be aggregated. These events need to be
ordered so that each event's index corresponds to the index of each route
| Constructor Summary | |
|---|---|
AggregationContext(MuleEvent originalEvent,
List<MuleEvent> events)
Creates a new instance |
|
| Method Summary | |
|---|---|
List<MuleEvent> |
collectEventsWithExceptions()
Returns all the MuleEvents which messages have a not null
ExceptionPayload and a not null
ExceptionPayload.getException(). |
List<MuleEvent> |
collectEventsWithoutExceptions()
The exact opposite to collectEventsWithExceptions() Returns all the
MuleEvents which messages have a null
ExceptionPayload or a null
ExceptionPayload.getException(). |
NavigableMap<Integer,Throwable> |
collectRouteExceptions()
Returns a NavigableMap in which the key is a zero-based route index
and the value is an Throwable generated by it. |
List<MuleEvent> |
getEvents()
|
MuleEvent |
getOriginalEvent()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AggregationContext(MuleEvent originalEvent,
List<MuleEvent> events)
originalEvent - a MuleEvent. Can be nullevents - a List of MuleEvent. Cannot be null
but could be empty. In that case, is up to each consumer to decide
wether to fail or not| Method Detail |
|---|
public List<MuleEvent> collectEventsWithExceptions()
MuleEvents which messages have a not null
ExceptionPayload and a not null
ExceptionPayload.getException(). Notice that this is a select
operation. Each time this method is invoked the result will be re-calculated
MuleEvent. It could be empty but it will never be
nullpublic NavigableMap<Integer,Throwable> collectRouteExceptions()
NavigableMap in which the key is a zero-based route index
and the value is an Throwable generated by it. Notice that this is a
collect operation. Each time this method is invoked the result will be
re-calculated
NavigableMap. It could be empty but it will never be
nullpublic List<MuleEvent> collectEventsWithoutExceptions()
collectEventsWithExceptions() Returns all the
MuleEvents which messages have a null
ExceptionPayload or a null
ExceptionPayload.getException(). Notice that this is a collect
operation. Each time this method is invoked the result will be re-calculated
MuleEvent. It could be empty but it will never be
nullpublic MuleEvent getOriginalEvent()
public List<MuleEvent> getEvents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||