org.mule.api.processor
Interface MessageRouter

All Superinterfaces:
MessageProcessor
All Known Subinterfaces:
MatchableMessageRouter, OutboundRouter
All Known Implementing Classes:
AbstractMessageSplitter, AbstractOutboundRouter, AbstractRecipientList, AbstractRoundRobinMessageSplitter, AbstractSequenceRouter, ChainingRouter, ContentBasedRouter, EndpointSelector, ExceptionBasedRouter, ExpressionMessageSplitter, ExpressionRecipientList, FilterBasedXmlMessageSplitter, FilteringOutboundRouter, FirstSuccessful, ListMessageSplitter, MessageChunkingRouter, MulticastingRouter, OutboundPassThroughRouter, RoundRobin, SequenceRouter, StaticRecipientList, SxcFilteringOutboundRouter, TransformerRouter, UntilSuccessful, XmlMessageSplitter

public interface MessageRouter
extends MessageProcessor

A MessageProcessor that routes messages to zero or more destination message processors. Implementations determine exactly how this is done by making decisions about which route(s) should be used and if the message should be copied or not.


Method Summary
 void addRoute(MessageProcessor processor)
          Adds a new message processor to the list of routes
 void removeRoute(MessageProcessor processor)
          Removes a message processor from the list of routes
 
Methods inherited from interface org.mule.api.processor.MessageProcessor
process
 

Method Detail

addRoute

void addRoute(MessageProcessor processor)
              throws MuleException
Adds a new message processor to the list of routes

Parameters:
processor - new destination message processor
Throws:
MuleException

removeRoute

void removeRoute(MessageProcessor processor)
                 throws MuleException
Removes a message processor from the list of routes

Parameters:
processor - destination message processor to remove
Throws:
MuleException


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.