|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UMOOutboundRouter
UMOOutboundRouter
is used to control outbound routing behaviour for
an event. One or more Outbound routers can be associated with an
UMOOutboundRouterCollection
and will be selected based on the filters
set on the individual Outbound Router.
UMOOutboundRouterCollection
Method Summary | |
---|---|
void |
addEndpoint(UMOEndpoint endpoint)
Adds an endpoint to this router |
List |
getEndpoints()
Gets a list of UMOEndpoint instances associated with this router |
String |
getReplyTo()
Gets the replyTo endpoint for any outgoing messages. |
UMOTransactionConfig |
getTransactionConfig()
|
boolean |
isDynamicEndpoints()
Determines whether this router supports dynamic endpoint. |
boolean |
isMatch(UMOMessage message)
Determines if the event should be processed by this router. |
boolean |
removeEndpoint(UMOImmutableEndpoint endpoint)
Removes a specific endpoint from the router |
UMOMessage |
route(UMOMessage message,
UMOSession session,
boolean synchronous)
This method is responsible for routing the Message via the Session. |
void |
setEndpoints(List endpoints)
Sets a list of UMOEndpoint instances associated with this router |
void |
setReplyTo(String replyTo)
Sets the replyTo endpoint for any outgoing messages. |
void |
setTransactionConfig(UMOTransactionConfig transactionConfig)
|
Methods inherited from interface org.mule.umo.routing.UMORouter |
---|
getRouterStatistics, setRouterStatistics |
Method Detail |
---|
void setEndpoints(List endpoints)
endpoints
- a list of UMOEndpoint instancesList getEndpoints()
void addEndpoint(UMOEndpoint endpoint)
endpoint
- the endpoint to add to the routerboolean removeEndpoint(UMOImmutableEndpoint endpoint)
endpoint
- the endpoint to remove
UMOMessage route(UMOMessage message, UMOSession session, boolean synchronous) throws MessagingException
message
- the message to send via one or more endpoints on this routersession
- the session used to actually send the eventsynchronous
- whether the invocation process should be synchronous or not
MessagingException
- if any errors occur during the sending of messagesFilteringOutboundRouter
,
ExceptionBasedRouter
,
MulticastingRouter
boolean isMatch(UMOMessage message) throws MessagingException
message
- the current message to evaluate
MessagingException
- if the event cannot be evaluatedSelectiveConsumer
UMOTransactionConfig getTransactionConfig()
void setTransactionConfig(UMOTransactionConfig transactionConfig)
String getReplyTo()
void setReplyTo(String replyTo)
replyTo
- endpoint string to useboolean isDynamicEndpoints()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |