public class DefaultInboundRouterCollection extends AbstractRouterCollection implements InboundRouterCollection
DefaultInboundRouterCollection
is a collection of routers that will be
invoked when an event is received. It is responsible for managing a collection of
routers and also executing the routing logic. Each router must match against the
current event for the event to be routed.logger, matchAll, muleContext, routers
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
DefaultInboundRouterCollection() |
Modifier and Type | Method and Description |
---|---|
void |
addEndpoint(InboundEndpoint endpoint) |
void |
addRouter(InboundRouter router) |
void |
dispatch(MuleEvent event) |
InboundEndpoint |
getEndpoint(String name) |
List |
getEndpoints() |
boolean |
removeEndpoint(InboundEndpoint endpoint) |
InboundRouter |
removeRouter(InboundRouter router) |
MuleMessage |
route(MuleEvent event) |
MuleMessage |
send(MuleEvent event) |
void |
setEndpoints(List endpoints) |
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(MuleEvent event) throws MessagingException
route
in interface InboundRouterCollection
MessagingException
public void dispatch(MuleEvent event) throws MuleException
MuleException
public MuleMessage send(MuleEvent event) throws MuleException
MuleException
public void addRouter(InboundRouter router)
addRouter
in interface InboundRouterCollection
public InboundRouter removeRouter(InboundRouter router)
removeRouter
in interface InboundRouterCollection
public void addEndpoint(InboundEndpoint endpoint)
addEndpoint
in interface InboundRouterCollection
public boolean removeEndpoint(InboundEndpoint endpoint)
removeEndpoint
in interface InboundRouterCollection
public List getEndpoints()
getEndpoints
in interface InboundRouterCollection
public void setEndpoints(List endpoints)
setEndpoints
in interface InboundRouterCollection
public InboundEndpoint getEndpoint(String name)
getEndpoint
in interface InboundRouterCollection
name
- the Endpoint identifierInboundRouterCollection
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.