1 /* 2 * $Id: SimpleCollectionResponseAggregator.java 11567 2008-04-11 13:08:05Z dirk.olmes $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com 5 * 6 * The software in this package is published under the terms of the CPAL v1.0 7 * license, a copy of which has been included with this distribution in the 8 * LICENSE.txt file. 9 */ 10 package org.mule.routing.response; 11 12 import org.mule.routing.CollectionCorrelatorCallback; 13 import org.mule.routing.EventCorrelatorCallback; 14 15 /** 16 * A simple aggregator that will keep collecting events until a timeout is reached. It will then return 17 * a {@link org.mule.api.MuleMessageCollection} message. 18 * 19 * @see org.mule.api.MuleMessageCollection 20 */ 21 public class SimpleCollectionResponseAggregator extends ResponseCorrelationAggregator 22 { 23 protected EventCorrelatorCallback getCorrelatorCallback() 24 { 25 return new CollectionCorrelatorCallback(); 26 } 27 }