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, routers
PHASE_NAME
PHASE_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, setStatistics
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRouter, getCatchAllStrategy, getRouters, getStatistics, isMatchAll, removeRouter, setCatchAllStrategy, setMatchAll, setRouters, setStatistics
initialise
dispose
public MuleMessage route(MuleMessage message, MuleSession session, boolean synchronous) throws MessagingException
OutboundRouterCollection
route
in interface OutboundRouterCollection
message
- The source Messagesession
- The current sessionRoutingException
- If any of the events cannot be created.MessagingException
protected MuleMessage catchAll(MuleMessage message, MuleSession session, boolean synchronous) throws RoutingException
RoutingException
public boolean hasEndpoints()
OutboundRouterCollection
hasEndpoints
in interface OutboundRouterCollection
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.