|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.time.TimerEvent
com.espertech.esper.client.time.CurrentTimeSpanEvent
public final class CurrentTimeSpanEvent
Event for externally controlling the time within an EPRuntime
or EPRuntimeIsolated
instance,
advancing time over a span of time.
The engine advances time according to the resolution passed in, completing at the target time provided.
When used without a resolution or with a negative or zero value for resolution the engine advances time according to any statement schedules that may be present. If no statement schedules are present, the engine simply advances time to the target time provided.
External clocking must be enabled via TimerControlEvent
before this class can be used
to externally feed time.
Constructor Summary | |
---|---|
CurrentTimeSpanEvent(long targetTimeInMillis)
Constructor taking only a target time to advance to. |
|
CurrentTimeSpanEvent(long targetTimeInMillis,
long optionalResolution)
Constructor taking a target time to advance to and a resoultion to use to advance time. |
Method Summary | |
---|---|
java.lang.Long |
getOptionalResolution()
Returns the resolution for advancing time, or null if none provided. |
long |
getTargetTimeInMillis()
Returns the target time to advance engine time to. |
void |
setOptionalResolution(java.lang.Long optionalResolution)
Sets the resolution for advancing time, or provide a null value if no resolution is desired. |
void |
setTargetTimeInMillis(long targetTimeInMillis)
Sets the target time to advance engine time to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurrentTimeSpanEvent(long targetTimeInMillis)
Use this constructor to have the engine decide the resolution at which time advances, according to present statement schedules.
targetTimeInMillis
- target timepublic CurrentTimeSpanEvent(long targetTimeInMillis, long optionalResolution)
Use this constructor to dictate a resolution at which time advances.
targetTimeInMillis
- target timeoptionalResolution
- should be a positive valueMethod Detail |
---|
public long getTargetTimeInMillis()
public void setTargetTimeInMillis(long targetTimeInMillis)
targetTimeInMillis
- target timepublic java.lang.Long getOptionalResolution()
public void setOptionalResolution(java.lang.Long optionalResolution)
optionalResolution
- resolution
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |