org.ceno.protocol.event
Class SendMessageEvent

java.lang.Object
  extended by org.ceno.protocol.event.SendMessageEvent
All Implemented Interfaces:
java.io.Serializable, IEvent, ITrackerProtocol

public class SendMessageEvent
extends java.lang.Object
implements IEvent, ITrackerProtocol, java.io.Serializable

Since:
0.0.2
Author:
Andre Albert <andre.albert82@googlemail.com>
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.ceno.protocol.ITrackerProtocol
ACTIVATE_SIGNAL, CLOSE_SIGNAL, DEACTIVATE_SIGNAL, LOGIN_SIGNAL, LOGOUT_SIGNAL, OPEN_SIGNAL, PROTOCOL_NAME, QUERY_DEVELOPER_STATES, QUERY_MESSAGES, SEND_MESSAGE_SIGNAL, SYNCH_SIGNAL
 
Constructor Summary
SendMessageEvent(Message message)
           
 
Method Summary
 Message getMessage()
           
 short getSignalId()
          
 long getTimestamp()
          Get the timestamp when this event was created i.e. thrown
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendMessageEvent

public SendMessageEvent(Message message)
Method Detail

getSignalId

public short getSignalId()

Specified by:
getSignalId in interface IEvent
Returns:
the id that identifies the signal that raises this event
See Also:
constants of the protocol interface for supported signals

getTimestamp

public long getTimestamp()
Get the timestamp when this event was created i.e. thrown

Specified by:
getTimestamp in interface IEvent
Returns:
a long value representing the Millisecond in UTC

getMessage

public Message getMessage()
Returns:
the message