View Javadoc

1   /*
2    * $Id: MulticastingRouter.java 21838 2011-05-06 19:39:12Z pablo.kraan $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.outbound;
12  
13  import org.mule.api.MuleEvent;
14  import org.mule.api.MuleException;
15  
16  /**
17   * <code>MulticastingRouter</code> will broadcast the current message to every endpoint
18   * registered with the router.
19   */
20  
21  public class MulticastingRouter extends AbstractSequenceRouter
22  {
23  
24      /**
25       * Indicates that this router always routes messages to all the configured
26       * endpoints no matters what a given response is.
27       */
28      @Override
29      protected boolean continueRoutingMessageAfter(MuleEvent response) throws MuleException
30      {
31          return true;
32      }
33  }