net.esper.client.time
Class CurrentTimeEvent

java.lang.Object
  extended by net.esper.client.time.TimerEvent
      extended by net.esper.client.time.CurrentTimeEvent

public final class CurrentTimeEvent
extends TimerEvent

Event for externally controlling the time within an EPRuntime instance. External clocking must be enabled via TimerControlEvent before this class can be used to externally feed time.


Constructor Summary
CurrentTimeEvent(long timeInMillis)
          Constructor.
 
Method Summary
 long getTimeInMillis()
          Returns the time in milliseconds.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CurrentTimeEvent

public CurrentTimeEvent(long timeInMillis)
Constructor.

Parameters:
timeInMillis - is the time in milliseconds
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getTimeInMillis

public long getTimeInMillis()
Returns the time in milliseconds.

Returns:
time in milliseconds