org.apache.tuscany.core.wire.impl
Class MessageChannelImpl
java.lang.Object
org.apache.tuscany.core.wire.impl.MessageChannelImpl
- All Implemented Interfaces:
- MessageChannel
public class MessageChannelImpl
- extends Object
- implements MessageChannel
A channel comprising an ordered collection of message handlers.
- Version:
- $Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $
- See Also:
Message
Method Summary |
void |
send(Message msg)
Send a message down the channel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageChannelImpl
public MessageChannelImpl(List<MessageHandler> pipeline)
- Construct a new channel comprising the supplied list of handlers.
- Parameters:
pipeline
- the Handlers in the channel
send
public void send(Message msg)
- Send a message down the channel. The message will be processed by all handlers
in order until one returns false to indicate processing is complete or all
handlers have been called.
- Specified by:
send
in interface MessageChannel
- Parameters:
msg
- a Message to send down the channel
-