Class Event

java.lang.Object
  extended by Event

public class Event
extends java.lang.Object

An Event is some scheduled task to be performed.


Constructor Summary
Event(long timeToOccur, Callback cb)
           
 
Method Summary
 Callback callback()
          Returns the callback
 long timeToOccur()
          When should this event occur?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event(long timeToOccur,
             Callback cb)
Parameters:
timeToOccur - The time at which the event should take place.
cb - The callback to be invoked
Method Detail

timeToOccur

public long timeToOccur()
When should this event occur?

Returns:
The time it will happen.

callback

public Callback callback()
Returns the callback

Returns:
The callback