@Deprecated public class DefaultOutboundRouterCollection extends Object implements OutboundRouterCollection, MessagingExceptionHandlerAware
DefaultOutboundRouterCollection is a container of routers. An
DefaultOutboundRouterCollection must have atleast one router. By default the first
matching router is used to route an event though it is possible to match on all
routers meaning that the message will get sent over all matching routers.
Deprecated from 3.6.0. This functionality is specific to Services.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
Deprecated.
logger used by this class
|
protected boolean |
matchAll
Deprecated.
|
protected MuleContext |
muleContext
Deprecated.
|
protected List<MatchableMessageProcessor> |
routers
Deprecated.
|
protected RouterStatistics |
statistics
Deprecated.
|
PHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
DefaultOutboundRouterCollection()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRoute(MatchableMessageProcessor router)
Deprecated.
|
protected MuleEvent |
catchAll(MuleEvent event)
Deprecated.
|
void |
dispose()
Deprecated.
A lifecycle method where implementor should free up any resources.
|
OutboundRouterCatchAllStrategy |
getCatchAllStrategy()
Deprecated.
|
RouterStatistics |
getRouterStatistics()
Deprecated.
|
List<MatchableMessageProcessor> |
getRoutes()
Deprecated.
|
boolean |
hasEndpoints()
Deprecated.
Determines if any targets have been set on this router.
|
void |
initialise()
Deprecated.
Method used to perform any initialisation work.
|
boolean |
isMatchAll()
Deprecated.
|
MuleEvent |
process(MuleEvent event)
Deprecated.
Invokes the MessageProcessor.
|
void |
removeRoute(MatchableMessageProcessor router)
Deprecated.
|
void |
setCatchAllStrategy(OutboundRouterCatchAllStrategy catchAllStrategy)
Deprecated.
|
void |
setMatchAll(boolean matchAll)
Deprecated.
|
void |
setMessageProcessors(List<MatchableMessageProcessor> routers)
Deprecated.
|
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
Deprecated.
|
void |
setMuleContext(MuleContext context)
Deprecated.
|
void |
setRouterStatistics(RouterStatistics stat)
Deprecated.
|
String |
toString()
Deprecated.
|
protected final transient org.apache.commons.logging.Log logger
protected List<MatchableMessageProcessor> routers
protected boolean matchAll
protected RouterStatistics statistics
protected MuleContext muleContext
public DefaultOutboundRouterCollection()
public MuleEvent process(MuleEvent event) throws MessagingException
MessageProcessorprocess in interface MessageProcessorevent - MuleEvent to be processedMessagingExceptionprotected MuleEvent catchAll(MuleEvent event) throws RoutingException
RoutingExceptionpublic void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void dispose()
Disposabledispose in interface Disposable@Deprecated public void setMessageProcessors(List<MatchableMessageProcessor> routers)
public void addRoute(MatchableMessageProcessor router)
addRoute in interface MatchingRouterpublic void removeRoute(MatchableMessageProcessor router)
removeRoute in interface MatchingRouterpublic List<MatchableMessageProcessor> getRoutes()
getRoutes in interface OutboundRouterCollectionpublic OutboundRouterCatchAllStrategy getCatchAllStrategy()
getCatchAllStrategy in interface OutboundRouterCollectionpublic void setCatchAllStrategy(OutboundRouterCatchAllStrategy catchAllStrategy)
setCatchAllStrategy in interface OutboundRouterCollectionpublic boolean isMatchAll()
isMatchAll in interface OutboundRouterCollectionpublic void setMatchAll(boolean matchAll)
setMatchAll in interface OutboundRouterCollectionpublic RouterStatistics getRouterStatistics()
getRouterStatistics in interface OutboundRouterCollectionpublic void setRouterStatistics(RouterStatistics stat)
setRouterStatistics in interface RouterStatisticsRecorderpublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic boolean hasEndpoints()
OutboundRouterCollectionhasEndpoints in interface OutboundRouterCollectionpublic void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler in interface MessagingExceptionHandlerAwareCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.