org.ceno.protocol.event
Interface IEvent

All Known Implementing Classes:
ActivateResourceEvent, CloseResourceEvent, DeactivateResourceEvent, LoginSessionEvent, LogoutSessionEvent, OpenResourceEvent, QueryDeveloperResourceStatesEvent, QueryMessagesEvent, ResourceEvent, ReturnableEvent, SendMessageEvent, SynchResourceStateEvent

public interface IEvent

The root interface for all events that are thrown inside the system. Each event has a timestamp and a sender.

Version:
0.0.1
Author:
Andre Albert <andre.albert82@googlemail.com>

Method Summary
 short getSignalId()
           
 long getTimestamp()
          Get the timestamp when this event was created i.e. thrown
 

Method Detail

getSignalId

short getSignalId()
Returns:
the id that identifies the signal that raises this event
See Also:
constants of the protocol interface for supported signals

getTimestamp

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

Returns:
a long value representing the Millisecond in UTC