Determines if the event group is ready to be aggregated. if the group is ready
to be aggregated (this is entirely up to the application. it could be
determined by volume, last modified time or some oher criteria based on the
last event received).
events - The current event group received by the correlator
Returns: true if the group is ready for aggregation
MuleEvent aggregateEvents( EventGroup events)
This method is invoked if the shouldAggregate method is called and returns
true. Once this method returns an aggregated message, the event group is
removed from the router.
events - the event group for this request
Returns: an aggregated message
- if the aggregation fails. in this scenario the
whole event group is removed and passed to the exception handler
for this component
EventGroup createEventGroup( MuleEvent event,
Creates the event group with a specific correlation size based on the Mule
id - The group id
event - the current event
Returns: a new event group of a fixed size
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.