eaLib API Docs
Last Modified : January 7 2002

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

Field Summary
protected  MessageBroker broker
          Message broker.
protected  boolean channelFull
          Indicator if this channel is full or empty.
protected  Message message
          Transported message.
 
Constructor Summary
MessageChannel(MessageBroker broker)
          Constructor.
 
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
 

Field Detail

message

protected Message message
Transported message.

channelFull

protected boolean channelFull
Indicator if this channel is full or empty.

broker

protected MessageBroker broker
Message broker.
Constructor Detail

MessageChannel

public MessageChannel(MessageBroker broker)
Constructor.
Parameters:
broker - message broker
Method Detail

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

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS