public final class AggregationContext extends Object
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 routeConstructor and Description |
---|
AggregationContext(MuleEvent originalEvent,
List<MuleEvent> events)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
List<MuleEvent> |
collectEventsWithExceptions()
Returns all the
MuleEvent s which messages have a not null
ExceptionPayload and a not null
ExceptionPayload.getException() . |
List<MuleEvent> |
collectEventsWithoutExceptions()
The exact opposite to
collectEventsWithExceptions() Returns all the
MuleEvent s 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() |
public List<MuleEvent> collectEventsWithExceptions()
MuleEvent
s 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-calculatedMuleEvent
. It could be empty but it will never be
null
public 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-calculatedNavigableMap
. It could be empty but it will never be
null
public List<MuleEvent> collectEventsWithoutExceptions()
collectEventsWithExceptions()
Returns all the
MuleEvent
s 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-calculatedMuleEvent
. It could be empty but it will never be
null
public MuleEvent getOriginalEvent()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.