org.bounce.message
Class Message

java.lang.Object
  extended by org.bounce.message.Message

public class Message
extends Object

Representation of a message.

Version:
$Revision: 1.4 $, $Date: 2008/01/28 21:28:37 $
Author:
Edwin Dankert

Constructor Summary
Message()
          Constructor for the message.
Message(Object content)
          Constructor for the message.
 
Method Summary
 void consume()
          Consume the message.
 Object getContent()
          Returns the message.
 boolean isConsumed()
          Check if the message has been consumed.
 void send()
          Send the message.
 void setContent(Object content)
          Sets the content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message()
Constructor for the message.


Message

public Message(Object content)
Constructor for the message.

Parameters:
content - the message's content to be sent.
Method Detail

setContent

public void setContent(Object content)
Sets the content.

Parameters:
content - the message content.

getContent

public Object getContent()
Returns the message.

Returns:
the message's content

consume

public void consume()
Consume the message.


isConsumed

public boolean isConsumed()
Check if the message has been consumed.

Returns:
true if the message has been consumed.

send

public void send()
Send the message.



Copyright © 2002-2011 Edwin Dankert. All Rights Reserved.