View Javadoc

1   /*
2    * $Id: SingleResponseRouter.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  
11  package org.mule.routing.response;
12  
13  import org.mule.routing.EventCorrelatorCallback;
14  import org.mule.routing.SingleCorrelatorCallback;
15  
16  /**
17   * Handles single event responses from a replyTo address. If multiple responses will
18   * be received for a single invocation, the {@link ResponseCorrelationAggregator}
19   * should be used.
20   */
21  public class SingleResponseRouter extends AbstractResponseAggregator
22  {
23  
24      protected EventCorrelatorCallback getCorrelatorCallback()
25      {
26          return new SingleCorrelatorCallback();
27      }
28  }