@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 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_NAME
PHASE_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 Log logger
protected List<MatchableMessageProcessor> routers
protected boolean matchAll
protected RouterStatistics statistics
protected MuleContext muleContext
public DefaultOutboundRouterCollection()
public MuleEvent process(MuleEvent event) throws MessagingException
MessageProcessor
process
in interface MessageProcessor
event
- MuleEvent to be processedMessagingException
protected MuleEvent catchAll(MuleEvent event) throws RoutingException
RoutingException
public void initialise() throws InitialisationException
Initialisable
InitialisationException
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 Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void dispose()
Disposable
dispose
in interface Disposable
@Deprecated public void setMessageProcessors(List<MatchableMessageProcessor> routers)
public void addRoute(MatchableMessageProcessor router)
addRoute
in interface MatchingRouter
public void removeRoute(MatchableMessageProcessor router)
removeRoute
in interface MatchingRouter
public List<MatchableMessageProcessor> getRoutes()
getRoutes
in interface OutboundRouterCollection
public OutboundRouterCatchAllStrategy getCatchAllStrategy()
getCatchAllStrategy
in interface OutboundRouterCollection
public void setCatchAllStrategy(OutboundRouterCatchAllStrategy catchAllStrategy)
setCatchAllStrategy
in interface OutboundRouterCollection
public boolean isMatchAll()
isMatchAll
in interface OutboundRouterCollection
public void setMatchAll(boolean matchAll)
setMatchAll
in interface OutboundRouterCollection
public RouterStatistics getRouterStatistics()
getRouterStatistics
in interface OutboundRouterCollection
public void setRouterStatistics(RouterStatistics stat)
setRouterStatistics
in interface RouterStatisticsRecorder
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public boolean hasEndpoints()
OutboundRouterCollection
hasEndpoints
in interface OutboundRouterCollection
public void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler
in interface MessagingExceptionHandlerAware
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.