mss.ea.al
Class MessageChannel
java.lang.Object
|
+--mss.ea.al.MessageChannel
- public class MessageChannel
- extends java.lang.Object
A channel for message transport.
- Since:
- 0.2
- Version:
- $Revision: 1.3 $ $Date: 2001/11/13 10:00:32 $
- Author:
- Andreas Rummler
Method Summary |
Message |
get()
Gets a message from this channel.
|
void |
put(Message m)
Put a message on this channel.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
message
protected Message message
- Transported message.
channelFull
protected boolean channelFull
- Indicator if this channel is full or empty.
broker
protected MessageBroker broker
- Message broker.
MessageChannel
public MessageChannel(MessageBroker broker)
- Constructor.
- Parameters:
broker
- message broker
put
public void put(Message m)
- Put a message on this channel.
The sender of this message will wait until the recipient has fetched the message.
- Parameters:
m
- message to send
get
public Message get()
- Gets a message from this channel.
In case a get() is performed and the channel is empty, the recipient will wait until a new message
is put on the channel.
- Returns:
- message from this channel
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS