public class Message extends Object
Constructor and Description |
---|
Message()
Constructor for the message.
|
Message(Object content)
Constructor for the message.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Message()
public Message(Object content)
content
- the message's content to be sent.public void setContent(Object content)
content
- the message content.public Object getContent()
public void consume()
public boolean isConsumed()
public void send()
Copyright © 2002-2013 Edwin Dankert. All Rights Reserved.