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 route| Constructor and Description |
|---|
AggregationContext(Event originalEvent,
List<Event> events)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
List<Event> |
collectEventsWithExceptions()
Returns all the
Events which messages have a not null ExceptionPayload and a not
null ExceptionPayload.getException(). |
List<Event> |
collectEventsWithoutExceptions()
The exact opposite to
collectEventsWithExceptions() Returns all the Events 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<Event> |
getEvents() |
Event |
getOriginalEvent() |
public List<Event> collectEventsWithExceptions()
Events 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-calculatedEvent. 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-calculatedNavigableMap. It could be empty but it will never be nullpublic List<Event> collectEventsWithoutExceptions()
collectEventsWithExceptions() Returns all the Events 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-calculatedEvent. It could be empty but it will never be nullpublic Event getOriginalEvent()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.