public class DefaultOutboundRouterCollection extends AbstractRouterCollection implements OutboundRouterCollection
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.logger, matchAll, muleContext, routersPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
DefaultOutboundRouterCollection() |
| Modifier and Type | Method and Description |
|---|---|
protected MuleMessage |
catchAll(MuleMessage message,
MuleSession session,
boolean synchronous) |
boolean |
hasEndpoints()
Determines if any endpoints have been set on this router.
|
MuleMessage |
route(MuleMessage message,
MuleSession session,
boolean synchronous)
Prepares one or more events to be dispached by a Message Dispatcher.
|
addRouter, dispose, getCatchAllStrategy, getRouters, getStatistics, initialise, isMatchAll, removeRouter, setCatchAllStrategy, setMatchAll, setMuleContext, setRouters, setStatisticsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRouter, getCatchAllStrategy, getRouters, getStatistics, isMatchAll, removeRouter, setCatchAllStrategy, setMatchAll, setRouters, setStatisticsinitialisedisposepublic MuleMessage route(MuleMessage message, MuleSession session, boolean synchronous) throws MessagingException
OutboundRouterCollectionroute in interface OutboundRouterCollectionmessage - The source Messagesession - The current sessionRoutingException - If any of the events cannot be created.MessagingExceptionprotected MuleMessage catchAll(MuleMessage message, MuleSession session, boolean synchronous) throws RoutingException
RoutingExceptionpublic boolean hasEndpoints()
OutboundRouterCollectionhasEndpoints in interface OutboundRouterCollectionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.