|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OutboundRouter
OutboundRouter
is used to control outbound routing behaviour for
an event. One or more Outbound routers can be associated with an
OutboundRouterCollection
and will be selected based on the filters
set on the individual Outbound Router.
OutboundRouterCollection
Field Summary |
---|
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Method Summary | |
---|---|
void |
addEndpoint(OutboundEndpoint endpoint)
Adds an endpoint to this router |
OutboundEndpoint |
getEndpoint(String name)
|
List |
getEndpoints()
Gets a list of Endpoint instances associated with this router |
String |
getReplyTo()
Gets the replyTo endpoint for any outgoing messages. |
TransactionConfig |
getTransactionConfig()
|
boolean |
isDynamicEndpoints()
Determines whether this router supports dynamic endpoint. |
boolean |
isMatch(MuleMessage message)
Determines if the event should be processed by this router. |
boolean |
isRequiresNewMessage()
Determines is this router requires a new message copy. |
boolean |
removeEndpoint(OutboundEndpoint endpoint)
Removes a specific endpoint from the router |
MuleMessage |
route(MuleMessage message,
MuleSession session)
This method is responsible for routing the Message via the MuleSession. |
void |
setEndpoints(List endpoints)
Sets a list of Endpoint instances associated with this router |
void |
setReplyTo(String replyTo)
Sets the replyTo endpoint for any outgoing messages. |
void |
setTransactionConfig(TransactionConfig transactionConfig)
|
Methods inherited from interface org.mule.api.routing.Router |
---|
getRouterStatistics, setRouterStatistics |
Methods inherited from interface org.mule.api.lifecycle.Initialisable |
---|
initialise |
Methods inherited from interface org.mule.api.lifecycle.Disposable |
---|
dispose |
Method Detail |
---|
void setEndpoints(List endpoints)
endpoints
- a list of Endpoint instancesList getEndpoints()
void addEndpoint(OutboundEndpoint endpoint)
endpoint
- the endpoint to add to the routerboolean removeEndpoint(OutboundEndpoint endpoint)
endpoint
- the endpoint to remove
MuleMessage route(MuleMessage message, MuleSession session) throws MessagingException
message
- the message to send via one or more endpoints on this routersession
- the session used to actually send the event
MessagingException
- if any errors occur during the sending of messagesFilteringOutboundRouter
,
ExceptionBasedRouter
,
MulticastingRouter
boolean isMatch(MuleMessage message) throws MessagingException
message
- the current message to evaluate
MessagingException
- if the event cannot be evaluatedSelectiveConsumer
TransactionConfig getTransactionConfig()
void setTransactionConfig(TransactionConfig transactionConfig)
String getReplyTo()
void setReplyTo(String replyTo)
replyTo
- endpoint string to useboolean isDynamicEndpoints()
OutboundEndpoint getEndpoint(String name)
name
- the Endpoint identifier
boolean isRequiresNewMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |