Coverage Report - org.mule.api.routing.OutboundRouterCollection
 
Classes in this File Line Coverage Branch Coverage Complexity
OutboundRouterCollection
N/A
N/A
0
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.api.routing;
 8  
 
 9  
 import org.mule.api.context.MuleContextAware;
 10  
 import org.mule.api.lifecycle.Disposable;
 11  
 import org.mule.api.lifecycle.Initialisable;
 12  
 import org.mule.management.stats.RouterStatistics;
 13  
 
 14  
 import java.util.List;
 15  
 
 16  
 /**
 17  
  * <code>RouterCollection</code> defines the interface for a MessageRouter that
 18  
  * manages more than one router. A {@link OutboundRouterCatchAllStrategy} can be set
 19  
  * on this router to route unwanted or unfiltered events. If a catch strategy is not
 20  
  * set, the router just returns null. <code>OutboundRouterCollection</code> is
 21  
  * responsible for holding all outbound routers for a service service.
 22  
  */
 23  
 
 24  
 public interface OutboundRouterCollection
 25  
     extends MatchingRouter, RouterStatisticsRecorder, Initialisable, Disposable, MuleContextAware
 26  
 {
 27  
     List<MatchableMessageProcessor> getRoutes();
 28  
 
 29  
     OutboundRouterCatchAllStrategy getCatchAllStrategy();
 30  
 
 31  
     void setCatchAllStrategy(OutboundRouterCatchAllStrategy catchAllStrategy);
 32  
 
 33  
     boolean isMatchAll();
 34  
 
 35  
     void setMatchAll(boolean matchAll);
 36  
 
 37  
     /**
 38  
      * Determines if any targets have been set on this router.
 39  
      */
 40  
     boolean hasEndpoints();
 41  
 
 42  
     RouterStatistics getRouterStatistics();
 43  
 }