public class Message extends WWEvent
Modifier and Type | Field and Description |
---|---|
protected String |
name
Message name.
|
protected long |
when
Time at which the message was sent.
|
source
Constructor and Description |
---|
Message(String name,
Object source)
Create a message.
|
Message(String name,
Object source,
long when)
Create a message, with a timestamp.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Indicates the message name.
|
long |
getWhen()
Indicates the time at which the message was sent.
|
consume, isConsumed
getSource, toString
protected String name
protected long when
public Message(String name, Object source)
name
- The name of the message.source
- The object that generated the message.public String getName()
public long getWhen()