public class TimeBasedAggregatorOperations extends SingleGroupAggregatorOperations
| Constructor and Description |
|---|
TimeBasedAggregatorOperations() |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregateByTime(TimeBasedAggregatorParameterGroup aggregatorParameters,
IncrementalAggregationRoute incrementalAggregationRoute,
org.mule.runtime.extension.api.runtime.process.RouterCompletionCallback completionCallback)
This aggregator aggregates elements until it reaches the specified time period.
|
@Alias(value="timeBasedAggregator") @Throws(value=AggregatorErrorProvider.class) public void aggregateByTime(@ParameterGroup(name="Aggregator config") TimeBasedAggregatorParameterGroup aggregatorParameters, @ChainInputResolver(value=AggregationChainInputResolver.class) @ExecutionOccurrence(value=ONCE_OR_NONE) @Alias(value="incrementalAggregation") @Optional IncrementalAggregationRoute incrementalAggregationRoute, org.mule.runtime.extension.api.runtime.process.RouterCompletionCallback completionCallback)
incrementalAggregationRoute route
that will be executed every time a new event arrives, unless maxSize is set.
If that is the case, the inclrementalAggregation route will be executed every time except when
the size of the aggregated elements is equal to maxSize. In that moment, a listener's callback(if any) is executed.aggregatorParameters - Define the behaviour of the aggregatorincrementalAggregationRoute - Route to be called with every new eventcompletionCallback - Callback to notify route completionCopyright © 2024 MuleSoft, Inc.. All rights reserved.