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