public abstract class AbstractOutboundRouter extends AbstractRouter implements OutboundRouter
AbstractOutboundRouter is a base router class that tracks
statistics about message processing through the router.| Modifier and Type | Field and Description |
|---|---|
static int |
ENABLE_CORRELATION_ALWAYS |
static int |
ENABLE_CORRELATION_IF_NOT_SET |
static int |
ENABLE_CORRELATION_NEVER |
protected int |
enableCorrelation |
protected List |
endpoints |
protected org.apache.commons.logging.Log |
logger
logger used by this class
|
protected MessageInfoMapping |
messageInfoMapping |
protected String |
replyTo |
protected TransactionConfig |
transactionConfig |
muleContextPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
AbstractOutboundRouter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndpoint(OutboundEndpoint endpoint)
Adds an endpoint to this router
|
protected TransactionTemplate |
createTransactionTemplate(MuleSession session,
ImmutableEndpoint endpoint) |
void |
dispatch(MuleSession session,
MuleMessage message,
OutboundEndpoint endpoint) |
int |
getEnableCorrelation() |
OutboundEndpoint |
getEndpoint(String name) |
List |
getEndpoints()
Gets a list of Endpoint instances associated with this router
|
MessageInfoMapping |
getMessageInfoMapping() |
String |
getReplyTo()
Gets the replyTo endpoint for any outgoing messages.
|
TransactionConfig |
getTransactionConfig() |
boolean |
isDynamicEndpoints()
Determines whether this router supports dynamic endpoint.
|
boolean |
removeEndpoint(OutboundEndpoint endpoint)
Removes a specific endpoint from the router
|
MuleMessage |
send(MuleSession session,
MuleMessage message,
OutboundEndpoint endpoint) |
void |
setEnableCorrelation(int enableCorrelation) |
void |
setEnableCorrelationAsString(String enableCorrelation) |
void |
setEndpoints(List endpoints)
Sets a list of Endpoint instances associated with this router
|
void |
setMessageInfoMapping(MessageInfoMapping messageInfoMapping) |
protected void |
setMessageProperties(MuleSession session,
MuleMessage message,
OutboundEndpoint endpoint) |
void |
setReplyTo(String replyTo)
Sets the replyTo endpoint for any outgoing messages.
|
void |
setTransactionConfig(TransactionConfig transactionConfig) |
dispose, getMuleContext, getRouterStatistics, initialise, setMuleContext, setRouterStatisticsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMatch, routegetRouterStatistics, setRouterStatisticsinitialisedisposepublic static final int ENABLE_CORRELATION_IF_NOT_SET
public static final int ENABLE_CORRELATION_ALWAYS
public static final int ENABLE_CORRELATION_NEVER
protected transient org.apache.commons.logging.Log logger
protected List endpoints
protected String replyTo
protected int enableCorrelation
protected MessageInfoMapping messageInfoMapping
protected TransactionConfig transactionConfig
public void dispatch(MuleSession session, MuleMessage message, OutboundEndpoint endpoint) throws MuleException
MuleExceptionpublic MuleMessage send(MuleSession session, MuleMessage message, OutboundEndpoint endpoint) throws MuleException
MuleExceptionprotected TransactionTemplate createTransactionTemplate(MuleSession session, ImmutableEndpoint endpoint)
protected void setMessageProperties(MuleSession session, MuleMessage message, OutboundEndpoint endpoint)
public List getEndpoints()
OutboundRoutergetEndpoints in interface OutboundRouterpublic void setEndpoints(List endpoints)
OutboundRoutersetEndpoints in interface OutboundRouterendpoints - a list of Endpoint instancespublic void addEndpoint(OutboundEndpoint endpoint)
OutboundRouteraddEndpoint in interface OutboundRouterendpoint - the endpoint to add to the routerpublic boolean removeEndpoint(OutboundEndpoint endpoint)
OutboundRouterremoveEndpoint in interface OutboundRouterendpoint - the endpoint to removepublic String getReplyTo()
OutboundRoutergetReplyTo in interface OutboundRouterpublic void setReplyTo(String replyTo)
OutboundRoutersetReplyTo in interface OutboundRouterreplyTo - endpoint string to usepublic int getEnableCorrelation()
public void setEnableCorrelation(int enableCorrelation)
public void setEnableCorrelationAsString(String enableCorrelation)
public MessageInfoMapping getMessageInfoMapping()
public void setMessageInfoMapping(MessageInfoMapping messageInfoMapping)
public TransactionConfig getTransactionConfig()
getTransactionConfig in interface OutboundRouterpublic void setTransactionConfig(TransactionConfig transactionConfig)
setTransactionConfig in interface OutboundRouterpublic boolean isDynamicEndpoints()
OutboundRouterisDynamicEndpoints in interface OutboundRouterpublic OutboundEndpoint getEndpoint(String name)
getEndpoint in interface OutboundRoutername - the Endpoint identifierInboundRouterCollectionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.