org.ceno.protocol.event
Class SynchResourceStateEvent

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

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

Since:
0.0.1
Version:
0.0.1
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
SynchResourceStateEvent(DeveloperResourceState developerResourceState)
           
 
Method Summary
 DeveloperResourceState getDeveloperResourceState()
           
 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

SynchResourceStateEvent

public SynchResourceStateEvent(DeveloperResourceState developerResourceState)
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

getDeveloperResourceState

public DeveloperResourceState getDeveloperResourceState()