Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

org.bounce.message
Class Message

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

public class Message
extends java.lang.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(java.lang.Object content)
          Constructor for the message.
 
Method Summary
 void consume()
          Consume the message.
 java.lang.Object getContent()
          Returns the message.
 boolean isConsumed()
          Check if the message has been consumed.
 void send()
          Send the message.
 void setContent(java.lang.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(java.lang.Object content)
Constructor for the message.

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

setContent

public void setContent(java.lang.Object content)
Sets the content.

Parameters:
content - the message content.

getContent

public java.lang.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.


Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

Copyright 2002-2002-2009 Edwin Dankert. All Rights Reserved.