Interface IMsgChannel

All Known Implementing Classes:
MsgQueue

public interface IMsgChannel

Interface for message channels.

Since:
1.0

Method Summary
 IMsgChannel makeCopy()
          clone this channel.
 IMsgChannel makeLazyCopy()
          clone this channel, assuming source will cease to be modified
 IMsg readMsg()
           Read a message, alter state of this channel instance.
 IMsgChannel sendMsg(IMsg msg)
           Post message to channel
 

Method Detail

makeCopy

IMsgChannel makeCopy()
clone this channel. state changes to cloned copy should not affect cloning source


makeLazyCopy

IMsgChannel makeLazyCopy()
clone this channel, assuming source will cease to be modified


sendMsg

IMsgChannel sendMsg(IMsg msg)

Post message to channel

Parameters:
msg - is the message to be sent
Returns:
This queue

readMsg

IMsg readMsg()

Read a message, alter state of this channel instance.

Returns:
IMsg just read.