org.ceno.protocol.event
Class ReturnableEvent<T>

java.lang.Object
  extended by org.ceno.protocol.event.ReturnableEvent<T>
All Implemented Interfaces:
java.io.Serializable, IEvent
Direct Known Subclasses:
LoginSessionEvent, LogoutSessionEvent, QueryDeveloperResourceStatesEvent, QueryMessagesEvent

public abstract class ReturnableEvent<T>
extends java.lang.Object
implements IEvent, java.io.Serializable

Since:
0.0.1 Abstract class for all synchronsous events that have a specified return value. Will block current thread
Author:
Andre Albert <andre.albert82@googlemail.com>
See Also:
Serialized Form

Constructor Summary
ReturnableEvent()
           
 
Method Summary
 T getResult()
           
 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
 
Methods inherited from interface org.ceno.protocol.event.IEvent
getSignalId
 

Constructor Detail

ReturnableEvent

public ReturnableEvent()
Method Detail

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

getResult

public T getResult()