public class DefaultResponseRouterCollection extends AbstractRouterCollection implements ResponseRouterCollection
DefaultResponseRouterCollection is a router that can be used to control how
the response in a request/response message flow is created. Main usecase is to
aggregate a set of asynchonous events into a single responselogger, matchAll, muleContext, routersPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
DefaultResponseRouterCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndpoint(InboundEndpoint endpoint) |
void |
addRouter(Router router) |
InboundEndpoint |
getEndpoint(String name) |
List |
getEndpoints() |
MuleMessage |
getResponse(MuleMessage message) |
int |
getTimeout() |
boolean |
hasEndpoints() |
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isFailOnTimeout() |
boolean |
removeEndpoint(InboundEndpoint endpoint) |
ResponseRouter |
removeRouter(ResponseRouter router) |
void |
route(MuleEvent event) |
void |
setEndpoints(List endpoints) |
void |
setFailOnTimeout(boolean failOnTimeout) |
void |
setTimeout(int timeout) |
dispose, getCatchAllStrategy, getRouters, getStatistics, isMatchAll, removeRouter, setCatchAllStrategy, setMatchAll, setMuleContext, setRouters, setStatisticsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCatchAllStrategy, getRouters, getStatistics, isMatchAll, removeRouter, setCatchAllStrategy, setMatchAll, setRouters, setStatisticsdisposepublic 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 Initialisableinitialise in class AbstractRouterCollectionInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void route(MuleEvent event) throws RoutingException
route in interface ResponseRouterCollectionRoutingExceptionpublic MuleMessage getResponse(MuleMessage message) throws RoutingException
getResponse in interface ResponseRouterCollectionRoutingExceptionpublic void addRouter(Router router)
addRouter in interface RouterCollectionaddRouter in class AbstractRouterCollectionpublic ResponseRouter removeRouter(ResponseRouter router)
removeRouter in interface ResponseRouterCollectionpublic void addEndpoint(InboundEndpoint endpoint)
addEndpoint in interface ResponseRouterCollectionpublic boolean removeEndpoint(InboundEndpoint endpoint)
removeEndpoint in interface ResponseRouterCollectionpublic List getEndpoints()
getEndpoints in interface ResponseRouterCollectionpublic void setEndpoints(List endpoints)
setEndpoints in interface ResponseRouterCollectionpublic InboundEndpoint getEndpoint(String name)
getEndpoint in interface ResponseRouterCollectionname - the Endpoint identifierInboundRouterCollectionpublic int getTimeout()
getTimeout in interface ResponseRouterCollectionpublic void setTimeout(int timeout)
setTimeout in interface ResponseRouterCollectionpublic boolean isFailOnTimeout()
public void setFailOnTimeout(boolean failOnTimeout)
public boolean hasEndpoints()
hasEndpoints in interface ResponseRouterCollectionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.