com.espertech.esper.client.time
Class CurrentTimeEvent

java.lang.Object
  extended by com.espertech.esper.client.time.TimerEvent
      extended by com.espertech.esper.client.time.CurrentTimeEvent
All Implemented Interfaces:
java.io.Serializable

public final class CurrentTimeEvent
extends TimerEvent

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

See Also:
Serialized Form

Constructor Summary
CurrentTimeEvent(long timeInMillis)
          Constructor.
 
Method Summary
 long getTimeInMillis()
          Returns the time in milliseconds.
 void setTimeInMillis(long timeInMillis)
          Sets the time in milliseconds.
 java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTimeInMillis

public long getTimeInMillis()
Returns the time in milliseconds.

Returns:
time in milliseconds

setTimeInMillis

public void setTimeInMillis(long timeInMillis)
Sets the time in milliseconds.

Parameters:
timeInMillis - to set

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com