Tuscany Core

org.apache.tuscany.core.wire.impl
Class MessageChannelImpl

java.lang.Object
  extended by org.apache.tuscany.core.wire.impl.MessageChannelImpl
All Implemented Interfaces:
MessageChannel

public class MessageChannelImpl
extends java.lang.Object
implements MessageChannel

A channel comprising an ordered collection of message handlers.

Version:
$Rev: 394379 $ $Date: 2006-04-15 18:01:36 -0400 (Sat, 15 Apr 2006) $
See Also:
Message

Constructor Summary
MessageChannelImpl(java.util.List<MessageHandler> pipeline)
          Construct a new channel comprising the supplied list of handlers.
 
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
 

Constructor Detail

MessageChannelImpl

public MessageChannelImpl(java.util.List<MessageHandler> pipeline)
Construct a new channel comprising the supplied list of handlers.

Parameters:
pipeline - the Handlers in the channel
Method Detail

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

Tuscany Core

-