org.mule.routing
Class SimpleCollectionAggregator

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessorBase
      extended by org.mule.processor.AbstractInterceptingMessageProcessor
          extended by org.mule.routing.AbstractAggregator
              extended by org.mule.routing.SimpleCollectionAggregator
All Implemented Interfaces:
AnnotatedObject, FlowConstructAware, MuleContextAware, Disposable, Initialisable, Startable, Stoppable, InterceptingMessageProcessor, MessageProcessor, MessageProcessorContainer, Aggregator, MessageSource

public class SimpleCollectionAggregator
extends AbstractAggregator

This router will return all aggregated events as a MuleMessageCollection. This allows the service itself to act upon the events rather that the user having to write a custom aggregator. This may feel more natural for some users. EIP Reference: http://www.eaipatterns.com/Aggregator.html


Field Summary
 
Fields inherited from class org.mule.routing.AbstractAggregator
eventCorrelator, flowConstruct, messageInfoMapping, muleContext, persistentStores, storePrefix
 
Fields inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
logger, next, notificationHandler
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
Constructor Summary
SimpleCollectionAggregator()
           
 
Method Summary
protected  EventCorrelatorCallback getCorrelatorCallback(MuleContext muleContext)
           
 
Methods inherited from class org.mule.routing.AbstractAggregator
dispose, expireAggregation, getStorePrefix, getTimeout, initialise, isFailOnTimeout, isPersistentStores, process, setFailOnTimeout, setFlowConstruct, setMessageInfoMapping, setMuleContext, setPersistentStores, setStorePrefix, setTimeout, start, stop
 
Methods inherited from class org.mule.processor.AbstractInterceptingMessageProcessorBase
addMessageProcessorPathElements, getAnnotation, getAnnotations, getListener, getMuleContext, isEventValid, processNext, setAnnotations, setListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.source.MessageSource
setListener
 

Constructor Detail

SimpleCollectionAggregator

public SimpleCollectionAggregator()
Method Detail

getCorrelatorCallback

protected EventCorrelatorCallback getCorrelatorCallback(MuleContext muleContext)
Specified by:
getCorrelatorCallback in class AbstractAggregator


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.