![]() | EPEventServiceTimeControl Interface |
Namespace: com.espertech.esper.runtime.client
public interface EPEventServiceTimeControl
The EPEventServiceTimeControl type exposes the following members.
Name | Description | |
---|---|---|
![]() | CurrentTime |
Returns current engine time.
If time is provided externally via timer events, the function returns current time as externally provided.
|
![]() | NextScheduledTime |
Returns the time at which the next schedule execution is expected, returns null if no schedule execution is
outstanding.
|
Name | Description | |
---|---|---|
![]() | AdvanceTime |
Advance time by jumping to the given time in milliseconds (or nanoseconds if so configured).
For externally controlling the time within a runtime.
External clocking must be first be enabled by configuration {@link com.espertech.esper.common.client.configuration.Runtime.ConfigurationRuntimeThreading.IsInternalTimerEnabled} passing false
or by calling {@link #clockExternal()}.
Time should never move backwards (unless for testing purposes where previous results can be thrown away)
|
![]() | AdvanceTimeSpan(Int64) |
Advance time by continually-sliding to the given time in milliseconds (or nanoseconds if so configured) at the smallest resolution (non-hopping).
For externally controlling the time within a runtime.
External clocking must be first be enabled by configuration {@link com.espertech.esper.common.client.configuration.Runtime.ConfigurationRuntimeThreading.IsInternalTimerEnabled} passing false
or by calling {@link #clockExternal()}.
Time should never move backwards (unless for testing purposes where previous results can be thrown away)
|
![]() | AdvanceTimeSpan(Int64, Int64) |
Advance time by continually-sliding to the given time in milliseconds (or nanoseconds if so configured) at the provided resolution (hopping).
For externally controlling the time within a runtime.
External clocking must be first be enabled by configuration {@link com.espertech.esper.common.client.configuration.Runtime.ConfigurationRuntimeThreading.IsInternalTimerEnabled} passing false
or by calling {@link #clockExternal()}.
Time should never move backwards (unless for testing purposes where previous results can be thrown away)
|
![]() | ClockExternal |
Switches off the internal timer which tracks system time. There is no effect if the runtime is already
on external internal time.
Your application may want to use {@link #advanceTime(long)}, {@link #advanceTimeSpan(long)} or {@link #advanceTimeSpan(long, long)}
after calling this method to set or advance time.
Its generally preferable to turn off internal clocking (and thus turn on external clocking) by configuration {@link com.espertech.esper.common.client.configuration.Runtime.ConfigurationRuntimeThreading.IsInternalTimerEnabled} passing false.
|
![]() | ClockInternal |
Switches on the internal timer which tracks system time. There is no effect if the runtime is already
on internal time.
Your application may not want to use {@link #advanceTime(long)}, {@link #advanceTimeSpan(long)} or {@link #advanceTimeSpan(long, long)}
after calling this method, since time advances according to JVM time.
|
![]() | IsExternalClockingEnabled |
Returns true for external clocking, false for internal clocking.
|